• Documentation
  • Workato Blog
  • Product Blog
  • Return to Workato
  • Login
  • Automation Institute
  • Documentation
  • Community Forums
New Topic
Discussions Recipe Building Recipe Error Troubleshooting
S

Saul Macht

started a topic about 6 years ago
Answered

URL is in an array and I can't put this URL in my URL field in Salesforce

I am using the pluck formula to get a URL from my data pill. However, the pluck formula returns an array, which I cannot use as an input into my URL field in Salesforce.


image


I get the following error: Adapters::Salesforce::Exceptions::JsonParserError


Best Answer
C
CJ Wee said about 6 years ago

Hi Saul, 


You can transform the array into a URL string by adding .to_param formula into your URL field. 


So your final URL field input would be <Files>.where(file_type: "pdf").pluck("content_url").to_param


image


Answer

CJ Wee

said about 6 years ago

Hi Saul, 


You can transform the array into a URL string by adding .to_param formula into your URL field. 


So your final URL field input would be <Files>.where(file_type: "pdf").pluck("content_url").to_param


image


Login to post a comment

Still can't find your solution?

Send us a ticket, we will try our best to assist you with your problem

Documentation
Developer's Library
Tutorials
eBooks
Product Hour
Product Blog
Workato Blog
Product updates
Customer Stories
© Workato 2022   Privacy   Terms   +1 (844) 469-6752
  • Documentation
  • Workato Blog
  • Product Blog
  • Solutions
  • Forums
  • Tickets
  • Log in
  • Return to Workato
Topic views count