Custom ServiceAction and Additional Parameters

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

    #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
    Member
    • Mar 2014
    • 9132

    #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.
    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

    Working...