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 in SalesForce by surbhi
• 3,810 points
312 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 by surbhi
• 3,810 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 in SalesForce by surbhi
• 3,810 points
397 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 in SalesForce by CoolCoder
• 4,360 points
280 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 in SalesForce by surbhi
• 3,810 points
593 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 in SalesForce by CoolCoder
• 4,360 points
452 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
2,021 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,050 points
360 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,050 points
239 views
0 votes
1 answer

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

Hi @Vardhan, I took Edureka's Salesforce Training that covers all ...READ MORE

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

edited Dec 22, 2021 by Soumya 264 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 in SalesForce by surbhi
• 3,810 points
851 views
0 votes
1 answer

Json response to be deserialized in Apex salesforce lightning

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

answered Mar 2 in SalesForce by surbhi
• 3,810 points
1,787 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