• Prateek Kumar 11
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 2
    Replies
I'm looking for a way to create/update the product data using datapacks
I'm looking for a way to make 2 parallel asynchronous callouts to  SOAP/XML based services. 
Salesforce has provided a way to make multiple callouts via continuation for http callouts however, I have not seen a way to do the same for imported WSDL(SOAP/XML) callouts.

Thanks
In our org, there is some code which tries to update a junction object record in the process of an account merge. The junction object's primary MD relation is with the standard Account object which has been shared with the user using sharing rules and provided Read/Write Access, and for the the sceondary MD relation object which is a custom object we have provided Modify All permission in the profile. 
From the UI, the user is able to edit the junction object.  However, sometimes the DML updates fails abruptly
And the logs show error as below:

05:46:48.538 (19720154513)|DML_BEGIN|[285]|Op:Update|Type:SObject|Rows:1
05:46:48.538 (19739132178)|DML_END|[285]
05:46:48.538 (19739187685)|EXCEPTION_THROWN|[285]|System.DmlException: Update failed. First exception on row 0 with id a4h16000001AAFXAA4; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: []
05:46:48.538 (19739839199)|SYSTEM_MODE_EXIT|false


Sometimes, the DML fails on the account object as well. This DML statement is just after the junction object update mentioned above. And the logs show the same error as below:

12:00:12.137 (10288991686)|DML_BEGIN|[287]|Op:Update|Type:Account|Rows:1
12:00:12.137 (10289002209)|LIMIT_USAGE|[287]|DML|6|150
12:00:12.137 (10289012816)|LIMIT_USAGE|[287]|DML_ROWS|7|10000
12:00:12.137 (10289028157)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:8
12:00:12.137 (10321783883)|DML_END|[287]
12:00:12.137 (10321853231)|EXCEPTION_THROWN|[287]|System.DmlException: Update failed. First exception on row 0 with id 0011600001vEVpYAAW; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: []
12:00:12.137 (10323198564)|HEAP_ALLOCATE|[287]|Bytes:184


I'm not able to understand what exactly is cause of these DML updates failing? Could someone with knowledge on this help me resolve this.

Thanks
Hi All, 

I have got a situation here. I'm our org we need to provide status via email when a data load completes. The data load job updates the owner on a particular object(say account)  and the trigger on that object then fires a queueable to update the owner on an object records related to the account. Once this queueable completed, it enqueues another queueable to change owner for another object records related to the account. 
For any errors that are occurring in this complex process we are storing those in a custom object. 
Currently, I have created a solution that sends an email when the final queueable completes. However, the problem arises when we do a data load to change the owner on accounts. Since, Salesforce breakdowns the records into batches of maximum 200 each we receive multiple emails depending on the number of batches. 
The solution I'm looking for is to send 1 email for the entire data load job .

Could anyone help me find a solution to this. 

Thanks 
 
I have a scenrio where I would like to call an apex class method with the click of a button from a VF page. Since, I need to use Opportunity object, I'm looking at creating an extension controller.
Could someone help me determine how could I achieve the required functionality to call a method that makes http request on click of a button, and the external service returns a response that needs to be updated in the Opportunity record from which the button was clicked.

Thanks
Below is the code sample I'm trying to put in a controller extension class. However, I'm getting "variable does not exist: opp.id" error at line 13. The actual code makes a http callout to an external service. I'm trying to write code to make a javascript remoting call on click of a button from a VF page. Could you please help
 
public class TestPageEx {
    private final Opportunity opp;
    // The extension constructor initializes the private member
    // variable acct by using the getRecord method from the standard
    // controller.
    public TestPageEx(ApexPages.StandardController stdController) {
        this.opp = (Opportunity)stdController.getRecord();
    }
    
    @RemoteAction
    public static String aaExample(String s)
    {
        Attachment att=   [Select Id,ParentId, Name,body,ContentType From Attachment where ParentId = :opp.Id limit 1];

}

}

Thanks.
Hello,

I have requirement where I would like to call an apex class method which makes a HTTP callout to an external service. What is the best way to achieve this?
The HTTP service would return some data that I would like to update on the record from which the VF page button is clicked, and display alerts like initiated/completed/error.
Also, shall this method be made asynchronous or is it fine to make a synchronous request in such scenarios considering the the callback doesn't take much time.

Please help.
Thanks in advance.
Hello,

Can someone who has worked on Salesforce Development for the Sales Cloud help me with the general scenarios that you have received during development.

I would like to recreate those for practice in order to get more knowledge about salesforce development actually happening in the IT industry. Scenarios related to VF, apex, automation etc.

I would be really grateful for this to help me with my learning.

TIA
I'm looking for a way to create/update the product data using datapacks
In our org, there is some code which tries to update a junction object record in the process of an account merge. The junction object's primary MD relation is with the standard Account object which has been shared with the user using sharing rules and provided Read/Write Access, and for the the sceondary MD relation object which is a custom object we have provided Modify All permission in the profile. 
From the UI, the user is able to edit the junction object.  However, sometimes the DML updates fails abruptly
And the logs show error as below:

05:46:48.538 (19720154513)|DML_BEGIN|[285]|Op:Update|Type:SObject|Rows:1
05:46:48.538 (19739132178)|DML_END|[285]
05:46:48.538 (19739187685)|EXCEPTION_THROWN|[285]|System.DmlException: Update failed. First exception on row 0 with id a4h16000001AAFXAA4; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: []
05:46:48.538 (19739839199)|SYSTEM_MODE_EXIT|false


Sometimes, the DML fails on the account object as well. This DML statement is just after the junction object update mentioned above. And the logs show the same error as below:

12:00:12.137 (10288991686)|DML_BEGIN|[287]|Op:Update|Type:Account|Rows:1
12:00:12.137 (10289002209)|LIMIT_USAGE|[287]|DML|6|150
12:00:12.137 (10289012816)|LIMIT_USAGE|[287]|DML_ROWS|7|10000
12:00:12.137 (10289028157)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:8
12:00:12.137 (10321783883)|DML_END|[287]
12:00:12.137 (10321853231)|EXCEPTION_THROWN|[287]|System.DmlException: Update failed. First exception on row 0 with id 0011600001vEVpYAAW; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: []
12:00:12.137 (10323198564)|HEAP_ALLOCATE|[287]|Bytes:184


I'm not able to understand what exactly is cause of these DML updates failing? Could someone with knowledge on this help me resolve this.

Thanks
Hello,

Can someone who has worked on Salesforce Development for the Sales Cloud help me with the general scenarios that you have received during development.

I would like to recreate those for practice in order to get more knowledge about salesforce development actually happening in the IT industry. Scenarios related to VF, apex, automation etc.

I would be really grateful for this to help me with my learning.

TIA