salesforce

How to disable/deactivate a SalesForce User through SOAP API?

坚强是说给别人听的谎言 提交于 2020-01-13 14:06:21
问题 I want to disable a User programmetically by using SOAP API. How can I do that? I am using Partner API and I have Developer edition. I have manage users persmissions set. I have gone through this link. I am looking for code which can help me disable/deactivate a User. This is my code: import com.sforce.soap.partner.Connector; import com.sforce.soap.partner.PartnerConnection; import com.sforce.soap.partner.QueryResult; import com.sforce.soap.partner.sobject.SObject; import com.sforce.ws

How to disable/deactivate a SalesForce User through SOAP API?

旧时模样 提交于 2020-01-13 14:05:16
问题 I want to disable a User programmetically by using SOAP API. How can I do that? I am using Partner API and I have Developer edition. I have manage users persmissions set. I have gone through this link. I am looking for code which can help me disable/deactivate a User. This is my code: import com.sforce.soap.partner.Connector; import com.sforce.soap.partner.PartnerConnection; import com.sforce.soap.partner.QueryResult; import com.sforce.soap.partner.sobject.SObject; import com.sforce.ws

How to disable/deactivate a SalesForce User through SOAP API?

纵饮孤独 提交于 2020-01-13 14:04:13
问题 I want to disable a User programmetically by using SOAP API. How can I do that? I am using Partner API and I have Developer edition. I have manage users persmissions set. I have gone through this link. I am looking for code which can help me disable/deactivate a User. This is my code: import com.sforce.soap.partner.Connector; import com.sforce.soap.partner.PartnerConnection; import com.sforce.soap.partner.QueryResult; import com.sforce.soap.partner.sobject.SObject; import com.sforce.ws

Web hook in salesforce?

痞子三分冷 提交于 2020-01-12 02:58:08
问题 I want to get notified when a new lead is created in Salesforce. Is there something like webhook in Salesforce or some other way to achieve this ? Any help is appreciated 回答1: Yes, plenty of options :) For SF as actor: Workflow rule that would fire on insert of Lead and send you an email (or if it's for system integration - outbound message). You can always write an "after insert" Apex trigger and have in it a callout to external system (SOAP and RESTful APIs are supported). Although you'll

How to unit test works in salesforce?

吃可爱长大的小学妹 提交于 2020-01-11 09:42:09
问题 I've done writing code on salesforce and in order to release the unit tests have to cover at least 75% . What I am facing is that the classOne that calls methods from classTwo also have to cover classTwo 's unit test within classOne even though it is done in classTwo file already. File MyClassTwo public with sharing class ClassTwo { public String method1() { return 'one'; } public String method2() { return 'two'; } public static testMethod void testMethod1() { ClassTwo two = new ClassTwo();

What is the meaning of “StandardProductID” (ASIN) in Amazon Seller inventory?

偶尔善良 提交于 2020-01-07 04:20:25
问题 We are trying to create products in Amazon seller account via feed api using xml files . I saw there is a tag for "StandardProductID" in xml but I want to know that should we create this id for amazon or amazon will create these ids after successful product feed operation . NOTE : We are sending products from salesforce to Amazon seller account. Basic question : What is the exact use of StandardProductID ID (ASIN) . How to create this ID if we have to add this in xml while creating product

Salesforce(apex) Query return values with toLowerCase

£可爱£侵袭症+ 提交于 2020-01-07 03:46:29
问题 I using Salesforce (apex), i need Query that will select values from table and return them in toLowerCase. some think like this: //only example (not working code) for(Users user:[select Name.toLowerCase(),LastName.toLowerCase() from Users ] ) { //code.... } For example if i have table Users with Name | LastName Boby | Testovich1 Dany | Testovich2 Ron | Testovich3 Query need to return me all values with toLowerCase: b oby t estovich1, d any t estovich2, r on t estovich3 I can do this like this

Custom Salesforce (docusign) button not firing. Error code provided

你说的曾经没有我的故事 提交于 2020-01-07 02:23:07
问题 I have built a custom button in salesforce on the opportunity object to link back to docusign and run a very specific set of actions. At first when i put the button in salesforce i would receive an error code. Now, i cannot get the button to fire at all. I ran firebug on the button and i see that there is a javascript error. I will pubslish all that i have here. You can also reference my previous question here: Custom Salesforce button for Docusign giving error - unexpected token~ {

Beatbox: How do I add OR function to WHERE clause when pulling data from SFDC?

爱⌒轻易说出口 提交于 2020-01-06 15:18:29
问题 Currently I am querying data from the Account object for only accounts with Opportunities. However, I want to add an OR function so that it will query data for accounts that have Contacts as well. What is the syntax for adding an OR to that? As in (SELECT AccountID FROM Opportunity OR Contact). So if the AccountID is in either set of data, it will pull the website for me. Current State: query_result = svc.query("SELECT ID,Website FROM Account where ID in (SELECT accountId FROM Opportunity)")

Create new Profile Object in salesforce

好久不见. 提交于 2020-01-06 14:04:43
问题 I want to insert a new Record in Profile object, but when I try to insert with SOQL, it throws an error, CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: [object Object]: entity type cannot be inserted: Profile ,, How do I resolve this problem. I have to add new records to Profile successfully. 回答1: You can't. Profile object does not support create() call. Profiles are created for example with Metadata API (which is bit hard to access from APEX). You can easily create them if you're calling SF from