• Surendra Peram
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 3
    Replies
Hi,

My code is 

TestObj__Share shareTestObj1 = new TestObj__Share();
shareTestObj1.ParentId = 'a9P1l0000008hOBEAY';
                            shareTestObj1.UserOrGroupId ='005240000044MWiAAM';
                            shareTestObj1.AccessLevel = 'All';
Insert shareTestObj1;

I am getting invalid Access error by giving the access as "All".

Can any one suggest me how we will give delete access to perticular user on perticular record. 

Thanks inadvance.

 

Hi Team,

I have a scenario like,
Agreement and Account Association objects. Agreement is a parent and Account Association is child. 
Account Association have a lookup field for Account (Standard object).

I am trying to copy the account association from one agreement to another agreement. trigger code sample is like,
Agreement__c agr1 = [Select id,(select id,account__c from AccountAssociations__r) from agreement where version__c = '0.1'];
Agreement__c agr2 = [Select id from agreement where version__c = '0.2'];
AccountAssociation__c aa = new AccountAssociation__c();
aa.agreement__c = agr2.id;
aa.Account__c = agr1.AccountAssociations__r[0].account__c;
System.debug('@@@@'+agr1.AccountAssociations__r[0].account__c);
insert aa;
while inserting the record i am getting below error
System.DmlException: Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: 0011l000009pfDh:
In above error the mentioned ID is belongs to account object. I am testing this functionality for some sales user, he do not have read permission for that account record "0011l000009pfDh". Here i am not updating account but i am just updating account record id in AccountAssociation__c object.
Please suggest me the solutions. Thanks In advance

Hi,

We have lightning component now we are using quick action to display lightning component.
Now the new requirement is to change the source from quick action to Formula field. Please suggest me the simple example to navigate from detail page to lightning component by using formula field.

Thanks,
Surendra.
Hi,

I need some info regarding integration error logs in salesforce
Scenario, we are integrating the account records from external system to salesforce by using Rest or Soap API. 
In SFDC side we are not doing any integration, this is something like inbound integration from external system to SFDC

My Question is: How we will get the error logs in SFDC side while inserting the data from external system.

Please suggest your solution or guidance on this.
Thanks in advance…
 
Hi,

My code is 

TestObj__Share shareTestObj1 = new TestObj__Share();
shareTestObj1.ParentId = 'a9P1l0000008hOBEAY';
                            shareTestObj1.UserOrGroupId ='005240000044MWiAAM';
                            shareTestObj1.AccessLevel = 'All';
Insert shareTestObj1;

I am getting invalid Access error by giving the access as "All".

Can any one suggest me how we will give delete access to perticular user on perticular record. 

Thanks inadvance.