• Jyotirmoy B
  • NEWBIE
  • 10 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 7
    Replies
I have a process bulder, validation rule and approval process. Approval process is updating a field called 'approver status ' to 'Pending for Approval'after submitting the record for approval and 
created a validation rule to restrict the submitter to edit the record. But backend it's working fine but validation is not popping up rather error is popoing up as "process is not working" . submitter has modify all access at permission set level.

Validation Rule - 
AND(NNAE_Record_Loacked__c= true,
OR( ISPICKVAL(PRIORVALUE(OCE__ApproverStatus__c), 'Pending Approval'), ISPICKVAL(PRIORVALUE(OCE__ApproverStatus__c), 'Approved') ),
NOT(OR(
$Profile.Name <> 'System Administrator',
$Profile.Name <> 'OCE Admin'))
)

"NNAE_Record_Loacked__c" is the field that is updating through Process Builder 
I am writing a nested query in apex code but throwing error as Didn't understand relationship

Select Id,Name,MedConnect__Account_Name__c,(select Unity_Product_Code__c from Impacted_Products__r limit 1 ) from MedConnect__Product_Complaint__c limit 10  
                         
ParentObject- MedConnect__Product_Complaint__c
Child Object-   MedConnect__Impacted_Product__c
                     
Child Relationship Name     - Impacted_Products

could any one please tell me, if the query is wrong
I have a process bulder, validation rule and approval process. Approval process is updating a field called 'approver status ' to 'Pending for Approval'after submitting the record for approval and 
created a validation rule to restrict the submitter to edit the record. But backend it's working fine but validation is not popping up rather error is popoing up as "process is not working" . submitter has modify all access at permission set level.

Validation Rule - 
AND(NNAE_Record_Loacked__c= true,
OR( ISPICKVAL(PRIORVALUE(OCE__ApproverStatus__c), 'Pending Approval'), ISPICKVAL(PRIORVALUE(OCE__ApproverStatus__c), 'Approved') ),
NOT(OR(
$Profile.Name <> 'System Administrator',
$Profile.Name <> 'OCE Admin'))
)

"NNAE_Record_Loacked__c" is the field that is updating through Process Builder 
I am writing a nested query in apex code but throwing error as Didn't understand relationship

Select Id,Name,MedConnect__Account_Name__c,(select Unity_Product_Code__c from Impacted_Products__r limit 1 ) from MedConnect__Product_Complaint__c limit 10  
                         
ParentObject- MedConnect__Product_Complaint__c
Child Object-   MedConnect__Impacted_Product__c
                     
Child Relationship Name     - Impacted_Products

could any one please tell me, if the query is wrong