Creating custom json file with variable values

anuraag_msg

New Member
Hello,
Solution needed for BLUE PRISM.

I am working on a project where I am fetching attachment from email and a few sender details.

Now, the next step involves converting this information into JSON, these details would be dynamic as new emails come in from different individuals.

The values inside this JSON has to be made dynamic.
Would really appreciate any pointers.

json = {"variables":
{
"Name": {"value": "XYZ", "type": "string"},
"Employeemail": {"value": "XYZ@rpaisthebest.com", "type": "string"},
"fileType": {"value": "pdf", "type": "string"},
"Employeefilename":{"value": "thisisafile.pdf", "type": "string"},
"file": {"value": pdffile.decode('utf-8'), "type": "file",
"valueInfo": {"filename": "thisisafile.pdf", "mimetype": "application/pdf", "encoding": "UTF-8"
}}}
}

Regards

------------------------------
Anuraag Pandey
------------------------------
 
Top