texei / texei-sfdx-plugin

Texeï's plugin for sfdx
https://texei.github.io/texei-sfdx-plugin/
BSD 3-Clause "New" or "Revised" License
122 stars 37 forks source link

CPQ Settings: Ensure existing access token for Frontdoor URL #147

Closed w-andre closed 7 months ago

w-andre commented 10 months ago

We are trying to validate importing CPQ data into scratch orgs during our CI pipeline. For our products we need to configure CPQ for the import to work (e.g. evergreen subscriptions product can only be created if it is enabled in the CPQ settings).

We noticed that we do not have an existing access token during our CI pipeline. This PR fixes this by ensuring that we have an access token before opening the Frontdoor Url. The new method is "inspired" by the following one from the official Salesforce plugin plugin-org: https://github.com/salesforcecli/plugin-org/blob/3bea8d5ac413b01232384122748722d87ae0f0a2/src/commands/org/open.ts#L142

w-andre commented 9 months ago

Hi @FabienTaillon, I just wanted to check if you need any additional information regarding this PR?

André

FabienTaillon commented 7 months ago

Thank you !