4

A GET request to that URL is returning HTML not just the JSON body. HttpRequest req = new HttpRequest(); req.setHeader('Content-Type','application/json;charset=UTF-8'); req.setEndpoint('https://swapi.dev/api/people/1/'); req.setMethod('GET'); HTTPResponse res = new Http().send(req); system.debug(res.getBody()); Produces this: Update: HttpRequest req = ...


4

This is a textbook use case for Change Data Capture, which supports CampaignMember. Your remote application would subscribe to Change Data Capture events for the CampaignMember object and could then consume events where those records are deleted. You wouldn't need to run any queries, which would be a dicey approach anyway since anything that was hard ...


4

Salesforce supports a wide variety of OAuth flows. The available flows are documented in here. Typically, external integrations should be authorized using the User Agent, Web Server, or JWT Flows depending on the specific use case.


4

Sessions (OAuth 2.0 or otherwise) don't really have a static point in time where you can say "this login is no longer valid". Instead, and as implied by the setting you've found, sessions can time out. That means that if there is no activity in the session for the value specified as the timeout, then the session is ended (and you'd need to get a new token). ...


3

You also need to specify a referenceId for the child objects. { "compositeRequest": [ { "method": "POST", "url": "/services/data/v38.0/sobjects/Account", "referenceId": "refAccount", "body": { "Name": "Manish VP" } }, { "method": "POST", ...


2

That error occurs when you have something else defined as "Url", something like String url = 'whatever'; ... String sfURL = URL.getSalesforceBaseUrl().toExternalForm(); In that case, SF understands URL as your variable and not the one you are expecting. I'd say you have 2 options, Change your declaration of whatever to a different name Use System.URL....


2

In general,but not always the case, you can use the $page and $pageSize parameters to control this. For example: /fake/myendPoint?$page=1&$pageSize=500 would return a payload of the first 500 items in the return. Do be careful though as not every endpoint will do this. Also, sometimes in order for $pageSize to work, you need to indicate the page first ...


2

You would leverage this field: Composite ID:273670.60.61.213995105 This is to be JOBID.LISTID.BATCHID.SUBID


1

Doesn't look like what you're asking to do is possible with the SObject rest resource. Your options here are to perform the filtering on your side (i.e. use what you currently have to grab all the records, then iterate over the results and filter out the ones you don't want yourself), or to use the Query resource and supply an appropriate query.


1

Not necessarily. This flag can be updated for any of a number of reasons (e.g. a user edited a field). Instead, a query might help: SELECT Id FROM Campaign WHERE Id IN (SELECT CampaignId FROM CampaignMember WHERE CreatedDate = TODAY) (Replace TODAY with any other date literal or a specific date range).


1

You can look at Change Data Capture as an option. With Change Data Capture, you receive near-real-time changes of Salesforce records, changes include the creation of a new record, updates to an existing record, deletion of a record, and undeletion of a record. Campaign Members are supported in Change Data Capture. I would also suggest reviewing the ...


1

As far as I know there is no general API to log events from iOS app to marketing cloud everytime. But you can make use of additional attributes or tags to capture the user's interest page, products etc.. via marketing cloud sdk. You can find more information on setting custom attributes/tag in ios here - https://salesforce-marketingcloud.github.io/...


1

The easiest way would be creating a formula field let's 'Sync With MC' and set it as True for only that particular record type data. Go to Contact Builder > Data Sources > Synchronised > Select the object which you want to synchronise > Add the Boolean field and mark when it equals to True. In this way the record will synchronise when for the particular ...


1

Depending on the test you have in mind, you may need to contact support first. Salesforce can give you guidance on tools you can use, availability windows, etc. Generally speaking, your performance should be good enough. Salesforce performs regular monitoring of performance and would get in touch with you if there's a problem. Manual testing is probably not ...


1

public static list<WrapperCOVID19Info> covid19{get;set;} This does not create an instance of a collection of WrapperCOVID19Info. You must either create the instance in the get; or simply check the null value in doFetchCOVIDInfo. public List<WrapperCOVID19Info> covid19 { get { if (covid19 == null) { //covid19 = new List&...


1

There's a better way to get this from apex directly without callouts now! List<EntityDefinition> eds = [SELECT DeveloperName, ExternalSharingModel, InternalSharingModel FROM EntityDefinition]; Documented here https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_entitydefinition.htm but works in normal ...


1

I have searched a lot for the API to get the trailblazer user data, but didn't get any single API working. Finally, I have created the API. Use this, https://trailheadtrackerapi.herokuapp.com/?id=Username you will get this response {"EarnedBadgeTotal":"value","EarnedPointTotal":"value","CompletedTrailTotal":"value"}


Only top voted, non community-wiki answers of a minimum length are eligible