Set Related record as parameter in workflow payload

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dodom2
    Senior Member
    • Jan 2020
    • 198

    Set Related record as parameter in workflow payload

    Hi All,
    I have a use case where I want to send POST data to an external service when a record is deleted.
    I use the @delete signal for this pupose.
    My payload looks like this: {
    "instanceId": "{$id}",
    "instanceName": "ProductOptionSets",
    "action": "delete",
    "opencartRecordId": "{$opencartRecordID}",
    "storeId": "{$companyBrandsIds}"
    }
    Problem is the "companyBrandsIds" never get replaced by the ID of the selected related record. What is correct formula to use and get the "companyBrandsIds" field sent?
    More details in the image
    Thanks.
  • yuri
    Member
    • Mar 2014
    • 8704

    #2
    Hi,

    Unfortunately arrays are not supported there. I don't know now of any possible workaround.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment


    • dodom2
      dodom2 commented
      Editing a comment
      Thank you Yurikuzn!
Working...