Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [api]

An application programming interface (API) is a specification intended to be used as an interface by software components to communicate with each other.

-2
votes
0answers
21 views

WhatsAPP Api for Salesforce [on hold]

How we can get Whats API key? I'm trying to write rest on whatsapp ..
1
vote
1answer
36 views

Associating Email Sends with Automation Activity via API

This is a continuation of this question: Retrieve multiple tasks in an Automation via API Now that we have been able to retrieve the Activities within an Automation, we would like to take it one step ...
0
votes
1answer
27 views

“The remote server returned an error: (401) Unauthorized.” Getting this issue while authenticate salesforce using c#

Getting Following issue while authenticate salesforce using C#: The remote server returned an error: (401) Unauthorized. My code: var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://...
-1
votes
0answers
9 views

How can we send an image from sfdc using multipart/form-data [closed]

I'm trying to integrate a third party system with salesforce, this system requires that the request post a multipart/form-data body which contains JSON parameters and the image file. Could any one ...
0
votes
0answers
9 views

Update sharepoint file property using Sharepoint API

Trying to update the file Title property by using Sharepoint API. I wrote the following code: public static void updateFile(String relativeUri){ HttpRequest reqWrite = new HttpRequest(); ...
1
vote
0answers
25 views

'CloudSoapClient' error in Drupal module when attempting to make call to data extension in Marketing Cloud

I am trying to make a SOAP request from Drupal to Marketing cloud by trying to integrate the API starter kit (PHP version) - https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-...
0
votes
0answers
26 views

Could not get any response using Postman

I have been making a post call to Account from postman but I am unable to create a Account. But I am successfully create a push Topic.
0
votes
0answers
9 views

Is there any option to enable asset sharing from apex or any salesforce API?

I want to check is asset sharing enabled in client's org. This can be achieved by checking ownerId field is exist on asset. If it does not exist then I want to enable it using apex or any salesforce ...
1
vote
0answers
14 views

One admin can get API tokens, but others can't

I have three users. All use the System Administrator profile, Salesforce licens as well as the same role and permission sets They're all using the same connected app client_id and client_secret. The ...
1
vote
1answer
19 views

query string parameter stripping after returl [closed]

folks stucked with the issue where we are exposing visualforce page to the third party application and where on button click on third party application it will redirect to salesforce through single ...
0
votes
1answer
19 views

Does Salesforce support the Client Credentials Grant for OAuth?

For every API I'm consuming from Salesforce so far, I'm using the Client Credentials Grant for everything that's just between servers (= no user involved). It seems that Salesforce itself does not ...
1
vote
0answers
38 views

Better error messages for bulk API calls

When using the REST Data Event, and posting multiple records to a DE, there is a behaviour which is becoming an issue when designing an integration. If we are posting e.g. 10 records, and 1 of them ...
0
votes
1answer
17 views

Getting error in Python when login to Salesforce

I am using simple-salesforce 0.74.2 for connecting to Salesforce by using below code, from simple_salesforce import Salesforce,SalesforceLogin sf = Salesforce(instance_url='https://xxxxx-xxx.my....
0
votes
1answer
25 views

How to retrieve ALL metadata in vscode

I'd rather not have to type out all the metadata types in the package.xml but i'm not seeing any other way to do it?
1
vote
1answer
23 views

How to use Metadata API to search which field is used in validation rules [duplicate]

I want a solution to understand how we use metadata API to get a list of validation rules in which a particular field api is present
0
votes
1answer
46 views

Which API to use for DataExtension update in SFMC

What is the best way to update SFMC (dataextension) by external system in automated fashion? We would like to push customer data and order history on daily basis from ERP to SFMC.
0
votes
2answers
166 views

Get a basket instance for a profile in SFCC

Is it possible to get a basket instance for a profile in SFCC? Here are my intentions: I have a job with the step which does the following: CustomerMgr.processProfiles(sendEmailIfNecessary, ""); i.e....
1
vote
1answer
35 views

SMS Concatenation and MobileConnect API

I'm working with MobileConnect to create notification text messages that will be triggered through the API. Further, there can be multiple notifications per contact/mobile number for an individual ...
1
vote
1answer
20 views

Chatter post as site guest user

I have open API that external application use through site.com In this case, API logic runs as site guest user. The problem is, Site guest user has no permission to post chatter. However, I need to ...
3
votes
0answers
27 views

Get status of a deployment programmatically

I want to get the status from the last deployment in an apex class. I find this API documentation but the problem is, I don't know how to get the id of the deployment in progress / last deployment ...
3
votes
2answers
161 views

Retrieve multiple tasks in an Automation via API

We can make a Retrieve call on an Automation object and if it contains only one Task get some details on that task. But, when there is more than one Task, the call does not return any information. ...
2
votes
1answer
27 views

SOQL query for attachment body never contains the expected data

Salesforce's developer documentation for the attachment object says (at the bottom of the page, emphasis mine): However, you can't receive the Body field for multiple records in a single query() ...
2
votes
0answers
49 views

Set GTL output in AMPSCRIPT variables

hope that someone can help me here: I'm trying to retrieve a simple result from a POST api call into ampscript variables. The cloudpage does show the variables as GTL, but when I try to display them ...
0
votes
0answers
28 views

Objects not in getGlobalDescribe() (Scorecard, ScorecardMetric, ScorecardAssociation)

i am confused why the objects Scorecard, ScorecardMetric, ScorecardAssociation arn't listed in the getGlobalDescribe() Map. Documentation (https://developer.salesforce.com/docs/atlas.en-us.apexcode....
-3
votes
1answer
44 views

Need help with API integration [closed]

We are looking for support on API integration and designing some custom activity in the journey builder - I have a few questions on this - How exactly to get the client ID and secret? Where and how ...
0
votes
1answer
52 views

Are there governance limits on lightning web components

Was curious. Client wants us to render data from an external database in a lightning web component data table. In this situation, as a front ender, I would typically just make an API call out from the ...
0
votes
0answers
14 views

Einstein Single user License

We are searching the AI possibilities using Einstein, I searched and found Einstein developer guide though which I am aware of Einstein Language and Vision APIs. I would like to purchase one user ...
0
votes
1answer
50 views

API event error - Event Definition Key not found

I have 3 journeys and when trying to connect from my website to the journey I receive the following error: { "message": "EventDefinitionKey 'APIEvent-1843bf88-e9aa-f083-95cf-e49409ff3ea0' not ...
0
votes
0answers
16 views

How to get the read only status of a field on a page layout from the API?

I'm using net.describeLayout from react-native-force to get the fields on the page layouts. However the problem is that it doesn't seem that the 'read-only' property from the page layout gets returned ...
0
votes
0answers
27 views

Caught exception: Unable to validate App Keys(ClientID/ClientSecret) provided.:

When trying to set up the following simple example I'm seeing an error: include_once('tests/UnitBootstrap.php'); use FuelSdk\ET_Client; use FuelSdk\ET_DataExtension; $myclient = new ET_Client(); ...
1
vote
3answers
49 views

Changing Unsubscribe reason through SSJS

I noticed that you can unsubscribe a user through SSJS, is it possible to use SSJS to change the unsubscribe reason? I notice that doing it through the API seems to be popular? why is that? Thanks
0
votes
0answers
36 views

Marketing cloud new Transactional Messaging API

In the last Marketing Cloud release there is the new transactional messaging API option (https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/transactional-messaging-api.htm). ...
0
votes
1answer
23 views

API to Triggered Send is “OK” but email fails in AMPscript — can we use API to pull the error record?

we've set up triggered sends, and it works just fine... however, on occasion the BuildRowSetfromString fails because the delimiter is missing (for example, there are 3 products in the email, but only ...
0
votes
0answers
17 views

Marketing Cloud Fuel SDK API : get Email Text/HTML

I am working on Salesforce Marketing Cloud API to extract Email Text/HTML. I am using ET_Client.ET_Email() function of Fuel SDK python to get data. Below is code snippet myClient = ET_Client....
0
votes
1answer
27 views

How to do a SOAP api callout from apex

//Generated by wsdl2apex public class RSSInterface { public class TestContractResponse_element { public String TestContractResult; private String[] TestContractResult_type_info = ...
1
vote
0answers
15 views

MetadataService in apex overriding the IP ranges on Profile instead of adding the new onces

I have requirement to update ProfileLoginIpRange on the profile. Lets say there are 5 IP ranges already added on the profile and I want to add 1 more to it. Code Used, MetadataService.MetadataPort ...
1
vote
1answer
27 views

C# Get SessionId returns affinity token empty (“”)

When im doing the GET request to get the affinityToken, its come empty {"key":"b99d9a87-c7db-4f5a-a20d-9419bb2d0ad0!1549978665283!x6db6+hNaLzITCEq9EcjFLyKAjw=","id":"b99d9a87-c7db-4f5a-a20d-...
0
votes
0answers
19 views

How to send data which increases after the base64 encoding?

I'm trying to send an attachment through api call, my file size is 4.5mb which increases to more than 6mb after base 64 encoding. and it start throwing error of 6 mb limit which salesforce support for ...
0
votes
1answer
15 views

How to make a call out from batch which (batch) get schedule from trigger?

I'm trying to call a method which do an api call. But I'm getting an error because this method get call through the process ran by batch and this is getting schedule from trigger. So even if i ...
1
vote
1answer
26 views

Choosing API to restore an object

I've got a backup of objects such as User, Profile, etc. I wanted to restore them through the provided set of APIs. I was wondering if there is any predefined set of objects that can be restored ...
0
votes
0answers
28 views

PlatformActionList consuming API calls

I'm having trouble dealing with my API calls limit. I found that the main object that is consuming this API calls is PlatformActionList (I'm not a developer, I'm not even sure if this is an object). ...
0
votes
1answer
37 views

Automation Studio: create a new automation from PHP

I'm very new about Salesforce and Marketing Cloud. I've seen it's possible to use two sets APIs (REST and SOAP) to interact with it. In the official MC documentation Web Services SOAP API are used to ...
0
votes
1answer
26 views

can I update platform version on new sandbox

I created a new sandbox but since its a copy from production it is on API 44 all other sandboxes are API 45. is there a way to manually update the API version on the newly created sandbox to API 45?
1
vote
0answers
37 views

Bulk API 2.0 Upload for files bigger than 150Mb

I'm trying to use the Bulk API 2.0 to upload big files. I need to know how I have to upload the data in case the file converted to base64 exceeds the 150Mb allowed. After reading the documentation I'...
0
votes
1answer
60 views

facing error as “This session is not valid for use with the REST API” while integration with PHP platform

I want to create lead record using integration of php platform. I have written rest API for that. The code is working fine when tested on workbench. But now I have integrated salesforce with PHP ...
1
vote
1answer
24 views

Get the Id of a Layout from its name

Im looking to use a combination of the tooling api object ProfileLayout and the SetupAuditTrail object. I can query the SetupAuditTrail and with a bit of parsing extract the names of any layouts that ...
0
votes
0answers
21 views

Can I use @Httppost and @Httpput on the same method

I want to use 1 method regardless of whether the request is sent as a Post or Put (upsert). So, if the request has an Id field populated, it will update the record, if not it will insert. Can I just ...
0
votes
1answer
28 views

Cannot create new package in marketing cloud

I am trying to create API integration with Marketing Cloud. According to following instructions Create and Install Packages first step is to click on new and create new package. But i do not have new ...
0
votes
0answers
21 views

Create email send definition using SOAP API

I am totally new to SalesForce. Need help, please. I want to create EmailSendDefinition programatically. According to this article it is possible using SOAP API. https://developer.salesforce.com/...
1
vote
1answer
39 views

How to Delete AccountContactRelation Record with SOAP API Call?

We are planning to deepen out integration between Salesforce and a third-party tool. Within the tool we have multiple accounts related to one contact. To replicate the relations between these contacts ...