Hi Guys, Good morning, I want to call external API...
# suitescript
m
Hi Guys, Good morning, I want to call external API inside the map/reduce script so i have 5-6 static value fields including access token i want to know where should i keep these values in script parameter if yes then i want to update AccessToken frequently if access token get expired so i need to update that token as well can i store in JSON file and keep that file somewhere in the FileCabinet and is it ok if i can read and rewrite the file. Regards,
n
Yes you could store those details in a file. You could create a custom record with the fields you need and update that or a file directly in the filecabinet.
r
Do note if multiple map instances are running, and the token gets expired multiple instances might try to update the file and can cause an error.
1
m
@raghav Yes, you are right i can keep access token in the map/reduce file but will keep other information in json