In my Canvas App , with Sharepoint as data source and 1:M relationship for SP List A to SP List B , I'm create and update my child list using a editable grid and Parent record using a form at the top of the grid.
ForAll(
colGridExpenData As itemCC,
Patch(
SP List B,
Defaults(SP List B),
{
Title: itemCC.Title,
ParentIDtxt: Text(SP List A.ID),
'Date From': itemCC.'Date From' + Time(Hour(itemCC.'Date From'),Minute(itemCC.'Date From'),0),
IsCredit: itemCC.IsCredit,
VAT: itemCC.VAT,
Currency: itemCC.Currency,
'Account Amounts': itemCC.'Account Amounts',
Amounts: itemCC.Amounts,
ExchangeRate: itemCC.ExchangeRate,
SNo: itemCC.SNo,
ExpenseFor: itemCC.ExpenseFor,
'Expense Type': itemCC.'Expense Type'
}
)
)
and Updating it with below formula
Patch(
SP List B,
UpdateIf(
colGridExpenData ,
Created = Blank(),
{
ID: Blank(),
ParentIDtxt: SP List A.ID
}
)
)
Everything is working fine except my Date and Time field, where its not storing the time in my date field.
Please help me understand the issue .