Custom ServiceAction and Additional Parameters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • item
    Active Community Member
    • Mar 2017
    • 1567

    #1

    Custom ServiceAction and Additional Parameters

    Hi Teams,

    How i can pass some "data" to the custom service action in JSON ?
    I try to have $body in the Additional Parameters Json format.
    i have try :
    "{$body}"
    "{$$body}" .... see below

    Thanks

    PHP Code:
    
    {
    "espoRecordId": "{$id}",
    "name": "{$name}",
    "userId": "{$assignedUserId}",
    "intValue": {$$myIntegerVariable},
    "boolValue": {$$myBooleanVariable},
    "stringValue": "{$$myStringVariable}"
    } 
    




    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9794

    #2
    Hello,

    This JSON is static.

    I'd consider using a custom formula function instead of the custom Service Action. Service actions were introduced early, before we had formula in Espo. IIRC.

    Comment

    Working...