• Garrett Hyder

    (@garrett-eclipse)


    Hi,

    Just wanted to share something I ran into. When I was using the gf_salesforce_push_data filter to supply data to a custom currency field on Salesforce I found that using an integer 0 would result in a value of 19 on Salesforce, a double of 0.00 resulted in a value of 20. Was pretty confused until I supplied ‘$0’ as a string which worked to set the Salesforce field to 0.

    Definitely found it odd, but learned that with currency datatype you have to supply as a string with the currency symbol.
    Example – $merge_vars['Amount__c'] = '$0';

    Hope that helps someone else confused by the currency datatype.

    Cheers

  • The topic ‘Tip – Currency Datatype requires the ‘$’’ is closed to new replies.