How to generate dictionary with the key as dynamic text and value as list of Documents in Appian

I am trying to use the DOCX From Dynamic Template smart service which requires the images data to be passed in the form of dictionary such that the key in the dictionary is the imageKey (text) and value is list of documents.

I have input like say, ri!imageKey (text) = "logo" and ri!images (list of documents) = {appianDocument1, appianDocument2}. Here appianDocument1 and appianDocument2 is of type Document and should be of type document in the final dictionary. 

I want to generate:

{

  logo: {appianDocument1, appianDocument2}

}

Can anyone help me to achieve this?

Thanks

  Discussion posts and replies are publicly visible

Parents Reply
  • Actually update wouldn't work, For generic purpose and business usecase I'm passing rule input 'data' as dictionary and passing diffrent dictionary for various scenario. In integration one thing is permanent that is case reference. And after the case reference I want to apply my data as it is genric. Pls give a resolution for this.

    {
    CaseReferences: {
    CustomerCaseReference: "7885",
    caseId : "125"
    },
    here I want to put my data as key value pair for example : CaseStatusChange: { CaseStatus: "Case_Concluded" }

    }

    As this dictionary will automatically convert into json

    Thanks

Children