You need to sign in to do that
Don't have an account?
Raisa Guillemette
Use Lightning Connect to link an External Object with Salesforce Users
I keep getting this error for the below challenge:
Error: Challenge Not yet complete... here's what's wrong:
The 'Phone__x' external object is not correctly setup with an indirect relationship to the User standard object.
The mobile phones being tracked by an external application are used by specific users in your Salesforce instance. Create an indirect lookup relationship between the 'Phone' External Object and the 'User' standard object.
Here is the UUID field:
What am I doing wrong?
Error: Challenge Not yet complete... here's what's wrong:
The 'Phone__x' external object is not correctly setup with an indirect relationship to the User standard object.
The mobile phones being tracked by an external application are used by specific users in your Salesforce instance. Create an indirect lookup relationship between the 'Phone' External Object and the 'User' standard object.
- Create an OData 2.0 external data source with 'Mobile Devices' as the label, 'Mobile_Devices' as the name, and this URL: https://phone-odata-demo.herokuapp.com/devices.svc/. Note: If you have completed the previous challenge in this module ('Setting up Lightning Connect'), the External Data Source should already exist in your Developer Edition.
- Add a new 'Phone UUID' custom field on the User standard object with the resulting API name of 'Phone_UUID__c'. The field should be of type 'Text' and marked as 'Unique' and 'External ID'.
- Change the 'UUID' field on the 'Phone__x' external object to be an indirect lookup relationship to the 'User' standard object. Use the 'Phone_UUID__c' field as the matching key for this indirect lookup relationship.
- Update any existing User record in your Developer Edition instance to have a value of '0000123442' for the 'Phone_UUID__c' field.
Here is the UUID field:
What am I doing wrong?
Thank you,
Raisa Guillemette
Hi Ralsa,
Did you find your issue?
I've just done the Challenge. If you need help do not hesitate to answer.
Kind regards,
Ángel.
Thanks!
Raisa
It's because you have added the 0000123442 value to the default information of the field and that is wrong, you have to add it to an user field (you, or any other user in your organization, that's why I told you to create a new one) not directly to the field.
Try it and tell me if works.
Good luck!
You are welcome!
Dear Zameer,
What kind of field did you created?
Phone or text?
Because you need to create a TEXT FIELD to be able to select that options (they will appear in the first screen after you select the text field option).
Tell me if this was the problem.
Kind regards,
Ángel.
I just ran into this while trying to complete the challenge. When creating the Phone_UUID__c field on the User object select "Do not allow duplicate values" and "External ID" and give it a length of 128 (matching the length of the Phone UUID text field).
Back on the User custom fields it should look like this:
That allowed the User object to appear on the Related Object menu when changing the field type of the external object UUID field.