+ Start a Discussion
Sunny NarulaSunny Narula 

Update Shopify Product if updated in Salesforce

Basically looking for updating Product on real time on Shopify as I update here in SFDC.

Requesting please guide me, is this possible in SFDC,

might be something we can proceed with after update trigger on Product.

Thanks

 

ManojjenaManojjena
Hi Sunny ,
Can you please explain your requirment with  bit more clarity .So that we can help you .
Thanks
Manoj
Sunny NarulaSunny Narula

Hello Manoj,

thanks for your quick response.

Basically I need that whenever a Product (few general fields) is updated in salesforce, it should update the Shopify for the corresponding product at the same time.

please guide me with the options and the ways. How we can achieve this.

thanks

ManojjenaManojjena
Hi Sunny ,
You need to write a trigger in Product2 ,heer on equestion is which all field you need to consider(when update ) and which field you need to update .
You can write trigger in products object ,please follow belwo code else let me know your field api name.
 
trigger productFieldToSoplify on Product2(before update ){
  for(Product2 prd : Trigger.new){
     if(prd.YourFieldApiName != Trigger.oldMap.get(prd.id).YourFieldApiName){
	   prd.FieldNeedsToUpdate='Shopify';
	 }
  }

}

Let me know if it helsp !!
Thanks
Manoj
 
Sunny NarulaSunny Narula

Hello Manoj,

I agree with the above code..

but how can I push those update to "Shopify" from the trigger... 

I have login details for Shopify..

thanks

ManojjenaManojjena
Hi Sunny ,
You mean sopify is one external server ? You need to integrate with that .
 
Sunny NarulaSunny Narula

Hi Manoj,

yes its "https://www.shopify.in"