function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Stefaan Somers 11Stefaan Somers 11 

How to share login info from webservice over different transactions

Hi,

I've a jobs that updates different records.
A process builder invokes an apex-method that for every record calls a future method.

This future-method will do a webservice call to login to obtain a security key, and next will do the actual webservice-call to update info in the external system.

Can I share the secret key in a certain way for a dedicated period, so I don't need to login every time....
VinayVinay (Salesforce Developers) 
Hi Stefaan,

As per my understanding you can restrict based on working hrs of the user to update api call info in external system.  Else you can use custom setting/named credentials and store them in salesforce.

Thanks,