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/
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)
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'"
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!
I have a situation where I am uploading an image in sharepoint and it is being saved using blob. I need to create an XML file with the data of the blob and other data that helps users to identify it. The following is a hint of what I want
<image>
<name>mydog</name>
<extension>.jpg</extension>
<blobid>0234234</blobid>
<blobpath>435343445</blobpath> </image>
I was looking at the tables in wss_content and came up to alldocumentstreams where there is a column called rbsid. unfortunately I cannot link this id to non of my documents. My question is this is there a way how i can get all the blob information from the DB so i can link it to other details?
Directly accessing the SharePoint database isn't supported by Microsoft.
If a server component requires information from the database, it must
get that data by using the appropriate items in the SharePoint object
model, and not by trying to get the items from the data structures in
the database through some query mechanism.
You might be better using the SharePoint object model to read these files.
Some links that should help
http://www.codeproject.com/KB/sharepoint/File_Shunter.aspx
http://www.learningsharepoint.com/2011/04/01/read-a-file-in-sharepoint-document-library/