/
var
/
www
/
html
/
sugardemo
/
include
/
api
/
help
/
Upload File
HOME
<!-- /* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized representative, then do not * install or use this SugarCRM file. * * Copyright (C) SugarCRM Inc. All rights reserved. */ --> <h2 xmlns="http://www.w3.org/1999/html">Overview</h2> <span class="lead"> Evaluates an Sugar Logic Expression and returns the result </span> <h2>Summary</h2> <span class="lead"> This request will process a given formula then will return the result. </span> <h2>Request Arguments</h2> <table class="table table-hover"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> <th>Required</th> </tr> </thead> <tbody> <tr> <td> targetRecordModule </td> <td> String </td> <td> Record Module </td> <td> True </td> </tr> <tr> <td> targetRecordId </td> <td> String </td> <td> Record ID </td> <td> True </td> </tr> <tr> <td> targetFields </td> <td> Array </td> <td> List of one or more formulas to be evaluated </td> <td> True </td> </tr> </tbody> </table> <br> <h3>Request Example</h3> <pre class="pre-scrollable"> { "targetRecordId": "3232sda6-8a62-a74f-bb53-535620232304", "targetRecordModule": "Accounts", "targetFields": { "webite": { "formula": "strToUpper(concat(\"https://\",toString($description),\"/\"))", "isCalculated": true, "fieldName": "website" } } } </pre> <h2>Response</h2> <span class="lead"> The response should look like the following: </span> <table class="table table-hover"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td> <field_name> </td> <td> string </td> <td> Calculated values </td> </tr> </tbody> </table> <h3>Response Example</h3> <pre class="pre-scrollable">{ "website": "HTTPS://WWW.SUGARCRM.COM/" }</pre> <h2>Change Log</h2> <table class="table table-hover"> <tr> <th>Version</th> <th>Change</th> </tr> <tr> <td> v11_13 </td> <td> Added <code>/actionButton/evaluateExpression</code> POST endpoint. </td> </tr> </table>