Closed tuck1s closed 1 year ago
Hi @tuck1s, this is a bug for the Commerce Cloud collection repository, not the Platform collection (this repository). I'll ping the collection's owner.
Thanks! Will close this issue now. FWIW I found Redis (with its automatic capability to give any stored values a time-to-live) is a nice way to handle expiry, in actual code (not Postman).
The SFMC pre-request script expects variables named
The "Salesforce APIs Template Environment" does not have placeholders for these, instead it uses clientId, clientSecret etc.
The token refresh logic in the pre-request script also has a bug. dne_tokenRefreshTime is set whether or not the token request succeeded, so the subsequent requests don't bother trying for a token.
Suggested update: