You need to sign in to do that
Don't have an account?
Natalie Jane Hodson
Apex Class to Relate New Contact to Current User's Account?
Hi,
A developer created a piece of apex code back in 2015 that is blocking a current deployment. For some reason it has only just started to fail, and without knowing the reason why, I (a non-developer) need to address the errors within the class.
The Apex class keeps updates of a portal user in sync with its corresponding contact. As far as I can see, as part of the Test, the code is creating a new portal user and contact record based on the Current Users details.
Unfortunately due to a flow triggered by contact creation, the class and subsequent trigger are not firing.The flow is looking for the account record of the contact that is being created, to update fields within the contact record.
Is their a way to capture within the apex class the current user's related contact detail, to pull the account record to satisfy the flow?
A developer created a piece of apex code back in 2015 that is blocking a current deployment. For some reason it has only just started to fail, and without knowing the reason why, I (a non-developer) need to address the errors within the class.
The Apex class keeps updates of a portal user in sync with its corresponding contact. As far as I can see, as part of the Test, the code is creating a new portal user and contact record based on the Current Users details.
Unfortunately due to a flow triggered by contact creation, the class and subsequent trigger are not firing.The flow is looking for the account record of the contact that is being created, to update fields within the contact record.
Is their a way to capture within the apex class the current user's related contact detail, to pull the account record to satisfy the flow?
Hope that helps!
Shawn