[Solved] Resource not found for the segment in Power Automate
Introduction:
Using Common data service(Current environment) connector to create a record, if we are trying to populate lookup field we might get the below error message.
![](https://www.cloudfronts.com/wp-content/uploads/2020/06/Ril_B14S1.png)
Solution:
When you use the current environment connector.
To populate a look up field, we need to specify the plural name of the entity and then the record GUID.
Eg: opportunities(GUID).
If we use the below approach, we will get the error Resource not found for the segment.
![](https://www.cloudfronts.com/wp-content/uploads/2020/06/Ril_B14S2.png)
Use the below method to resolve the same.
![](https://www.cloudfronts.com/wp-content/uploads/2020/06/Ril_B14S3.png)