You need to sign in to do that
Don't have an account?
ForceRookie
Queueable Class and AWS: Display JSON format of File Mapping
I have a File__c Object and Folder__c Object, I have to display the File Mapping from AWS callout in FileMapping__c field using Queueable Class, in this format:
Please help. Thanks in advance!
{ "00BO000001F3w11ABC" : { //This is the Record ID "files" : [ //Object { "name" : "File.txt", "SFFolderObject" : "<FOLDER LOOKUP>", "foldername" : "<FOLDER NAME>", "bucketid" : "<BUCKET ID>", "SalesforceID" : "<ID OF FILE RECORD>" "Created Date" : "<Date>" } ] } }
Please help. Thanks in advance!
sing the JSONGenerator class methods, you can generate standard JSON-encoded content.
You can construct JSON content, element by element, using the standard JSON encoding. To do so, use the methods in the JSONGenerator class.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_json_jsongenerator.htm