How to take test salesforce com while deployment as salesforce login url for api connection logic app

0 votes

In logic app i'm using salesforce connector after deployment i observe for api connection while authorize i'm getting login.salesforce.com but i want it as test.salesforce.com which is sandbox url.

Is there any way to define that ?

below parameters are there in logic app currently unable to see anything to define url.

 "parameters": {
      "$connections": {
        "value": {
          "SalesforceConnection": {
            "id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', 'southcentralus', '/managedApis/', 'salesforce')]",
            "connectionId": "[resourceId('Microsoft.Web/connections', parameters('salesforce_conn_name'))]",
            "connectionName": "[parameters('salesforce_conn_name')]"
          }
        }
      }
    }

    {
  "type": "MICROSOFT.WEB/CONNECTIONS",
  "apiVersion": "2016-06-01",
  "name": "[parameters('salesforce_conn_name')]",
  "location": "southcentralus",
  "properties": {
    "api": {
      "id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', 'southcentralus', '/managedApis/', 'salesforce')]"
    },
    "displayName": "[parameters('salesforce_conn_name')]"
  }
}

Mar 2, 2022 in SalesForce by surbhi
• 3,820 points
941 views

1 answer to this question.

0 votes

you are not passing the parameterValues, use the below ARM template and it should work connecting to sandbox environment:

 {
      "type": "MICROSOFT.WEB/CONNECTIONS",
      "apiVersion": "2016-06-01",
      "name": "salesforceapiconnection",
      "location": "[resourceGroup().location]",      
      "properties": {
        "api": {
          "id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', 'centralus', '/managedApis/', 'salesforce')]"
        },
        "displayName": "Salesforce API Connection",
        "parameterValues": {
          //The Salesforce Login URI. For Production, use https://login.salesforce.com
          "token:LoginUri": "[if(equals(parameters('environment'), 'production'), 'https://login.salesforce.com', 'https://test.salesforce.com')]",          
          "salesforceApiVersion": "v47",
          "privacySetting": "Organizational"
        }
      }
    }
answered Mar 2, 2022 by surbhi
• 3,820 points

Related Questions In SalesForce

0 votes
0 answers

How to take test.salesforce.com while deployment as salesforce login url for api connection logic app?

In logic app i'm using salesforce connector after deployment ...READ MORE

Mar 1, 2022 in SalesForce by surbhi
• 3,820 points
1,034 views
0 votes
1 answer

How to take test.salesforce.com while deployment as salesforce login url for api connection logic app?

You are not passing the parameterValues, use ...READ MORE

answered Mar 9, 2022 in SalesForce by CoolCoder
• 4,420 points
776 views
0 votes
0 answers

How to Write the Test class for Salesforce Apex Aura Enabled class?

stuck in here to write a test ...READ MORE

Mar 15, 2022 in SalesForce by surbhi
• 3,820 points
2,022 views
0 votes
1 answer

how to create a custom login page in salesforce.com?

Here are a few things to consider: Is ...READ MORE

answered Apr 6, 2022 in SalesForce by CoolCoder
• 4,420 points
1,434 views
+2 votes
2 answers

Salesforce Interview questions

Here are some questions very important for ...READ MORE

answered Jan 11, 2019 in Career Counselling by Suresh
• 720 points
3,342 views
0 votes
1 answer

How to connect to salesforce from tableau?

Hi, follow these steps to connect to Salesforce: 1. ...READ MORE

answered Mar 25, 2019 in Tableau by Cherukuri
• 33,030 points
1,017 views
0 votes
1 answer

Power BI - Salesforce

Hi, Follow below steps: 1. Go to Data source. 2. ...READ MORE

answered Mar 25, 2019 in Power BI by Cherukuri
• 33,030 points
710 views
0 votes
2 answers

What is the best training for Salesforce ADM-201 Exam?

Hi @Vardhan, I took Edureka's Salesforce Online Training, ...READ MORE

answered Jun 3, 2021 in Others by Jaya
• 140 points

edited Dec 22, 2021 by Soumya 707 views
0 votes
1 answer

Salesforce Test Class - System.NullPointerException: Attempt to de-reference a null object

Because testAccount.account is never set, it is ...READ MORE

answered Mar 2, 2022 in SalesForce by surbhi
• 3,820 points
2,851 views
0 votes
1 answer

Json response to be deserialized in Apex salesforce lightning

Because some fields in Apex Salesforce are ...READ MORE

answered Mar 2, 2022 in SalesForce by surbhi
• 3,820 points
3,530 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP