Hi All,
Online scenario- I have two entities journey and detail. And I have two screen on one screen I fill the data and record gets created in journey . And I have second screen on which I fill more detail about particular record and when I submit, record should get created into detail with GUID column(Unique Identifier). Now I have lookup field in detail called "Journey Lookup" which is nothing but the GUID of the recent record inserted by the journey which we submitted on first screen.
How can I do that in offline mode? Online is working. For offline I need to check if the record is created today having no end date and Buslookup value=lookup value for the logged in user from a Bus entity.
I have this on App Onstart -

I have this on Onselect of submit button -
If(
Connection.Connected,
Patch('Triage daily Replicas',Defaults('Triage daily Replicas'),{
Temperature:Value(TextInput11.Text),
'Journey Lookup':LookUp(Journeys,'Bus ID Lookup'.Bus=GUID(TextInput7.Text) And IsBlank('Journey End Date and Time') And 'Created On'=Today())
}),
Collect(
TriagebyBusCollection,
{
cre08_temperature: Value(TextInput11.Text),
cre08_journeylookup:LookUp(
JourneyColletion,
cre08_busid.Bus = GUID(TextInput7.Text) && IsBlank(cre08_journeyenddateandtime) && IsToday(cre08_journeystartdateandtime))
}
);
SaveData(
TriagebyBusCollection,
"Saveitemstotriagebybus"
))
Any help is appreciated!