Skip to content

Commit d0b6015

Browse files
committed
2327179
1 parent 8493bdf commit d0b6015

File tree

1 file changed

+50
-116
lines changed

1 file changed

+50
-116
lines changed

powerapps-docs/teams/inspections-hierarchy-locations.md

Lines changed: 50 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -177,141 +177,75 @@ All the changes to the Inspections app are completed. The app can now be publish
177177

178178
```powerapps-dot
179179
If(
180-
181-
DateDiff(
182-
183-
Date(
184-
185-
Year(galInspections.Selected.createdon),
186-
187-
Month(galInspections.Selected.createdon),
188-
189-
Day(galInspections.Selected.createdon)
190-
191-
),
192-
193-
Today(),
194-
195-
Days
196-
197-
) = 0,
198-
180+
DateDiff(
181+
Date(
182+
Year(galInspections.Selected.createdon),
183+
Month(galInspections.Selected.createdon),
184+
Day(galInspections.Selected.createdon)
185+
),
186+
Today(),
187+
Days
188+
) = 0,
199189
If(
200-
201-
DateDiff(
202-
203-
Date(
204-
205-
Year(galInspections.Selected.createdon),
206-
207-
Month(galInspections.Selected.createdon),
208-
209-
Day(galInspections.Selected.createdon)
210-
211-
),
212-
213-
Today(),
214-
215-
Hours
216-
217-
) \> 0,
218-
219-
galInspections.Selected.Store.Name & " \| Submitted by " &
220-
galInspections.Selected.createdby.'Full Name' & ", " & DateDiff(
221-
222-
Date(
223-
224-
Year(galInspections.Selected.createdon),
225-
226-
Month(galInspections.Selected.createdon),
227-
228-
Day(galInspections.Selected.createdon)
229-
230-
),
231-
232-
Today(),
233-
234-
Hours
235-
236-
) & " hrs ago",
237-
190+
DateDiff(
191+
Date(
192+
Year(galInspections.Selected.createdon),
193+
Month(galInspections.Selected.createdon),
194+
Day(galInspections.Selected.createdon)
195+
),
196+
Today(),
197+
Hours
198+
) \> 0,
199+
galInspections.Selected.Store.Name & " \| Submitted by " &
200+
galInspections.Selected.createdby.'Full Name' & ", " & DateDiff(
201+
Date(
202+
Year(galInspections.Selected.createdon),
203+
Month(galInspections.Selected.createdon),
204+
Day(galInspections.Selected.createdon)
205+
),
206+
Today(),
207+
Hours
208+
) & " hrs ago",
238209
If(
239-
240-
DateDiff(
241-
242-
Date(
243-
244-
Year(galInspections.Selected.createdon),
245-
246-
Month(galInspections.Selected.createdon),
247-
248-
Day(galInspections.Selected.createdon)
249-
250-
),
251-
252-
Today(),
253-
254-
Hours
255-
256-
) = 0,
257-
210+
DateDiff(
211+
Date(
212+
Year(galInspections.Selected.createdon),
213+
Month(galInspections.Selected.createdon),
214+
Day(galInspections.Selected.createdon)
215+
),
216+
Today(),
217+
Hours
218+
) = 0,
258219
//"minutes ago"
259-
260220
galInspections.Selected.Store.Name & " \| Submitted by " &
261221
galInspections.Selected.createdby.'Full Name' & ", minutes ago"
262-
263222
,
264-
265223
If(
266-
267-
DateDiff(
268-
269-
Date(
270-
271-
Year(galInspections.Selected.createdon),
272-
273-
Month(galInspections.Selected.createdon),
274-
275-
Day(galInspections.Selected.createdon)
276-
277-
),
278-
279-
Today(),
280-
281-
Days
282-
283-
) = 1,
284-
224+
DateDiff(
225+
Date(
226+
Year(galInspections.Selected.createdon),
227+
Month(galInspections.Selected.createdon),
228+
Day(galInspections.Selected.createdon)
229+
),
230+
Today(),
231+
Days
232+
) = 1,
285233
//"yesterday",
286-
287234
galInspections.Selected.Store.Name & " \| Submitted by " &
288235
galInspections.Selected.createdby.'Full Name' & ", yesterday",
289-
290236
galInspections.Selected.Store.Name & " \| Submitted by " &
291237
galInspections.Selected.createdby.'Full Name' & ", " & DateDiff(
292-
293238
Date(
294-
295-
Year(galInspections.Selected.createdon),
296-
297-
Month(galInspections.Selected.createdon),
298-
299-
Day(galInspections.Selected.createdon)
300-
301-
),
302-
239+
Year(galInspections.Selected.createdon),
240+
Month(galInspections.Selected.createdon),
241+
Day(galInspections.Selected.createdon)
242+
),
303243
Today(),
304-
305244
Days
306-
307245
) & " days ago"
308-
309246
)
310-
311247
)
312-
313248
)
314-
315249
)
316250
```
317251

0 commit comments

Comments
 (0)