• Ghulam Murtaza 5
  • NEWBIE
  • 90 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 3
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 6
    Replies
hello,

i am a newbie to salesforce and trying to complete this trailhead challenge and unable to find a way through apex to generate this method for creating new contacts with unique id. as one requirement to pass the challenge is "The 'generateRandomContacts' method must be capable of consistently generating contacts with unique first names."

If somebody successfully completed the task kindly help me.

regards,
Greetings!!

Can any one guide me on his below error:

There was an unhandled exception. Please reference ID: WMQELJQC. Error: Faraday::Error::ResourceNotFound. Message: NOT_FOUND: The requested source does not exist


Im facing this error while working on "Create a publisher action for the Account object."
How to debug as i have no idea of "reference ID :WMQELJQC" what this ID means in salesforce?
hello,

i am a newbie to salesforce and trying to complete this trailhead challenge and unable to find a way through apex to generate this method for creating new contacts with unique id. as one requirement to pass the challenge is "The 'generateRandomContacts' method must be capable of consistently generating contacts with unique first names."

If somebody successfully completed the task kindly help me.

regards,
Greetings!!

Can any one guide me on his below error:

There was an unhandled exception. Please reference ID: WMQELJQC. Error: Faraday::Error::ResourceNotFound. Message: NOT_FOUND: The requested source does not exist


Im facing this error while working on "Create a publisher action for the Account object."
How to debug as i have no idea of "reference ID :WMQELJQC" what this ID means in salesforce?
hello,

i am a newbie to salesforce and trying to complete this trailhead challenge and unable to find a way through apex to generate this method for creating new contacts with unique id. as one requirement to pass the challenge is "The 'generateRandomContacts' method must be capable of consistently generating contacts with unique first names."

If somebody successfully completed the task kindly help me.

regards,
Greetings!!

Can any one guide me on his below error:

There was an unhandled exception. Please reference ID: WMQELJQC. Error: Faraday::Error::ResourceNotFound. Message: NOT_FOUND: The requested source does not exist


Im facing this error while working on "Create a publisher action for the Account object."
How to debug as i have no idea of "reference ID :WMQELJQC" what this ID means in salesforce?

Hey community,

I'm struggling with the logic of the task...

To complete this challenge, add a validation rule which will block the insertion of a contact if the contact is related to an account and has a mailing postal code (which has the API Name MailingPostalCode) different from the account's shipping postal code (which has the API Name ShippingPostalCode).Name the validation rule 'Contact must be in Account ZIP Code'.

A contact with a MailingPostalCode that has an account and does not match the associated Account ShippingPostalCode should return with a validation error and not be inserted.

The validation rule should ONLY apply to contact records with an associated account. Contact records with no associated parent account can be added with any MailingPostalCode value. (Hint: you can use the ISBLANK function for this check)

Here is what I got so far:

AND(
 NOT(ISBLANK(MailingPostalCode)),
 MailingPostalCode  <>  Account.ShippingPostalCode )

I THINK I know how to see if the contact mailing zip is not the same as the account shipping zip, and only if the is not blank.

The part I am stuck on is if the "Contact records with no associated parent account can be added with any MaiilingPostalCode value"...

I don't know what to do with that.

Also, I am now getting the error message when I recheck challenge:

Challenge not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Contact_must_be_in_Account_ZIP_Code: [] 


Double help, please.