• Ruth Rushton
  • NEWBIE
  • 15 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 5
    Replies
Hi

Can someone please help as I have no Apex experience and I've tried various different previous posts to help but I'm not getting anywhere!

I have two Custom objects, CustomObj1 has a field which is a lookup of CustomObj2, CustomObj1 also has two other fields which I would like to be populated with details from CustomObj2 depending on which lookup is selected.

I think I need a Trigger on CustomObj1 but I don't know how to write the code (I keep getting errors to do with < symbols).

Please could someone help with what code I should be using, I have a Sandbox set-up with data in to test.

Thanks
I have created a flow that is set to run in system mode (System context without sharing).
Based on the documentation, this is supposed to ignore all object permissions.

The flow I have built is meant to create a record of an object that certain profiles don't have the create permission for. I assumed that, if I run the flow in system context this wouldn't cause issues for these profiles. But it does. All profiles that don't have create permissions for that object get an error when they launch the flow. When I change the profile it works fine.

To me that sounds like the behavior of the flow is different from what the documentation describes.

Does anybody have an idea on how to handle that? I tried opening a case with SF but it is considered a development case which is not covered by our support package so I was advised to post the question here. 
Hi

Can someone please help as I have no Apex experience and I've tried various different previous posts to help but I'm not getting anywhere!

I have two Custom objects, CustomObj1 has a field which is a lookup of CustomObj2, CustomObj1 also has two other fields which I would like to be populated with details from CustomObj2 depending on which lookup is selected.

I think I need a Trigger on CustomObj1 but I don't know how to write the code (I keep getting errors to do with < symbols).

Please could someone help with what code I should be using, I have a Sandbox set-up with data in to test.

Thanks