Hi @varshinims08,
Depends a bit on your setup. Have you created a custom field with a N:1 relationship for your Entity A?
If so, below is an example with the out of the box Account entity.
That entity has a field called parentaccountid. This field is using a N:1 relationship called account_parent_account.

With this example it should be possible to add the relationship by just setting the guid of the parent account in the parentaccountid field.
1. Add a When a record is created trigger action

2. Add a List records action. Use the filter query field to retrieve the parent. Make sure you also exclude the account from the trigger.
name eq '@{triggerOutputs()?['body/name']}' and accountid ne '@{triggerOutputs()?['body/accountid']} '

3. Add a Update a record action. Use accountid (child) from the trigger action.

4. Use an expression to retrieve the accountid from the parent from the List records action.
outputs('List_records')?['body/value']?[0]?['accountid']
