12.6 C
Canberra
Saturday, July 4, 2026

Unable to change environments in a cell app construct


We have now a ipad iOS app that’s presently being constructed from Azure DevOps. The app has "Select Connection" display(SS display) that selects the URL that its going to hit or load after which authenticate by consumer. There are multi choices within the URL’s outlined in servers. xml(SS under). I would like so as to add a brand new URL to hit login.salesforce.com with label Prod_non_sso.

The related fields from the recordsdata are proven under. If something extra is required I can share.

That is prepareEnvironment.js

// Put together Information.plist
execSync(`/usr/libexec/PlistBuddy -c 'Set :SFDCOAuthLoginHost ${servers[environment]}' ${plist}`);
// Put together bootconfig.plist
execSync(`/usr/libexec/PlistBuddy -c 'Set :oauthRedirectURI https://${servers[environment]}/providers/oauth2/success' ${bootConfigPlist}`);

That is Information.plist  
<key>SFDCOAuthLoginHost</key>
<string>check.salesforce.com</string>

That is the yaml related part

parameters:
  - identify: setting
    displayName: 'Which setting to deploy to'
    sort: string
    default: SANDBOX
    values:
      - SANDBOX
      - PROD
      - DEV
      - SHARED_QA 
      - GO_LIVE
      - 1LOCAL_QA_SP7
      - PREPROD  
      - PROD_NON_SSO    

PARAM_ENVIRONMENT_VALUE="${{ parameters.setting }}"

That is the error that comes up

enter image description here

enter image description here

enter image description here

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

[td_block_social_counter facebook="tagdiv" twitter="tagdivofficial" youtube="tagdiv" style="style8 td-social-boxed td-social-font-icons" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjM4IiwiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMzAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3Njh9" custom_title="Stay Connected" block_template_id="td_block_template_8" f_header_font_family="712" f_header_font_transform="uppercase" f_header_font_weight="500" f_header_font_size="17" border_color="#dd3333"]
- Advertisement -spot_img

Latest Articles