I need to find something that is inside a sObject referenced in my SOQL search, but the search just returns the file name. Can anybody help me with this? Thanks.
Perhaps this will help: https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contentdocumentlink.htm.
From this document:
"ContentDocumentLink represents the link between a Salesforce CRM
Content document or Chatter file and where it's shared. A file can be
shared with other users, Chatter groups, records, and Salesforce CRM
Content libraries. This object is available in versions 21.0 and later
for Salesforce CRM Content documents and Chatter files."
Example query:
"SELECT ContentDocument.title FROM ContentDocumentLink WHERE ContentDocumentId = '069D00000000so2' AND LinkedEntityId = '0D5000000089123'"
Related
I am utilizing azure data factory upsert salesforce.
I have two tables in salesforce
contacts__c (holds the the individual first and last name )
contactdetails__c (holds additional information about contact)
since I can not use dataflows directly with salesforce (for lookup), I upsert contact__c (sourcesystemid__c hold our internal contact ID).
when trying upsert contactdetails__c, I have to perform a lookup on the fly to know the salesforce internal ID associated for each contact and use that to upsert contactdetails__c.
I saw article suggesting to use contact__r.sourcesystemid__c which doesn't work for me .
I use copy data activity for contactdetails with source being my data in azure sql (with our internal contact ID) and sink is contactdetails__c on the mapping of the contactID I use
source sink
contactid contact__r.sourcesystemid__c
but it doesn't work
would appreciate any suggestion as to how I can lookup internal id of contact while upserting contactdetails table
thanks
Your question is missing a lot of details. I do not know how you are trying to do this, but assuming you are using the REST API then take a look at the section named Upserting Records and Associating with an External ID of this document.
One question... Why are you using custom sObjects for this? Why not use the standard Contact sObject. Also having the data denormalized like you are indicating is a bad idea in Salesforce.
How can we get name of email templates using API? Can anyone please guide?
Which API. Come on, put bit more effort in your question
You just need to run queries? Email templates are metadata, can be queried in EmailTemplate table.
SELECT Id, DeveloperName,FolderName,Name,NamespacePrefix FROM EmailTemplate
If you're using Metadata API (retrieving config, deploying classes etc) you need to explicitly list them in the package.xml. If you don't know the names - you can query like above or use listMetadata call. Example if you're using Ant migration tool: https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/forcemigrationtool_listmetadata.htm (it'll work per folder)
IBM Watson Discovery service
I want to get the set of keywords in a particular document in a collection using discovery service. I tried the below url:
https://watson-api-explorer.mybluemix.net/discovery/api/v1/environments/{environment secret key}/collections/{collection secret key}/query?passages=true&count=10&highlight=true&version=2017-11-07
But, it is fetching from all documents in that collection. How can I specify a particular document to be searched?
It's important to know: The collections can have a lot of documents, so the query will search across all your documents inside your collection that you specified if you won't put a field id inside the query.
According to the IBM Watson Discovery Expert #Anish Mathur you can query for a particular document using a field query.
So something like
enviroment/{id envir}/collections/{id coll}/query?query=id:{document_id}
See the Official API Reference for query with WDS.
Amazon seller account accepts xml's if you try to create a Listing (Product) there.I need to do this from Salesforce. Is there any way to generated xmls which best fit to Amazon's api. They Provide xsd file but I am confused that how it will be helpful in Salesforce ?
An XSD defines the structure of an XML file. try generating a sample XML file from the XSD provided to get the structure.
http://xsd2xml.com/
I'm currently trying to backup the attachment files from old cases and emails in our Salesforce org through an automated process. I first tried to do this with the Bulk API but sadly this doesn't allow me to export the body column of attachments.
I did manage to pull this data out with the dataloader via command line (and the FileExporter tool). Now what I would like to do is export only those attachments that are attached to old emails or cases.
Is it possible to use a collection of ID's (preferable in a file) from those parent objects in the WHERE clause of the query in the beans file? If so, could somebody post an example?
Something along the lines of:
entry key="sfdc.extractionSOQL" value="SELECT Id, Body FROM Attachment WHERE id IN parentIdFile.csv"/>
Would be much appreciated!