Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Salesforce has introduced preserveGuestCart api recently #5

Open
coderajith opened this issue Jun 8, 2024 · 1 comment
Open

Salesforce has introduced preserveGuestCart api recently #5

coderajith opened this issue Jun 8, 2024 · 1 comment

Comments

@coderajith
Copy link

Is there any chance that the preserver guest cart functionality get added in the postman collection, am facing some challenge on using the preserve api. csrf token is needed to uses this API.

@RamNL
Copy link

RamNL commented Nov 12, 2024

In the 4. Get Session Context - We are facing an issue.

In the API - 2. Query Site Id, URL Prefix, Set Site URL - we have postscript, where we are concatenating storevforcesite to be used in the next APIs, but we have to remove that and use /store

Here is the modified script that we are using --

const siteUrlPath = [];
const instanceUrl = pm.collectionVariables.get('orgUrl');
const siteUrl = instanceUrl.replace('my.salesforce.com', 'my.site.com/store');
//if (site.UrlPathPrefix) {
//    siteUrlPath.push(site.UrlPathPrefix);
//}
siteUrlPath.push('webruntime');
siteUrlPath.push('api');

Can we add this to the Postman collection as a fix, let me know your thoughts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants