Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

ForAll( TsheetData,

Patch('Credenca TSheet', {ProjectName:Dropdown1.Selected.'Project Name',

Date:DatePicker1.SelectedDate,

'Task Description': TextInput1.Text,

Efforts: hh.SelectedText.Value & " h : " & mm.SelectedText.Value & " m ",

Email:User().Email}))

; Notify("Entry Submitted Succesfully", NotificationType.Success)

ForAll(TsheetData,

Patch('Credenca TSheet, {ProjectName:COL_Project,

Date:COL_Date,

'Task Description':COL_Description,

Efforts:COL_hh & " h : " & COL_MM & " m ",

Email:User().Email}))

; Notify("Entry Submitted Succesfully", NotificationType.Success)


Clear(colAssigneeRole);Set(varnew,false)

If(!IsBlank(varitem),varitem.'Start Date')

(RoundDown(

DateDiff(

'Start Date Fill'.SelectedDate,

'End Date Fill'.SelectedDate,

TimeUnit.Days

) / 7,

) * 5 + Mod(

5 + Weekday('End Date Fill'.SelectedDate) - Weekday('Start Date Fill'.SelectedDate),

) + 1)-CountRows(Filter('Holiday Calendar Credenca_2023',

'Holiday Date'>='Start Date Fill'.SelectedDate,

'Holiday Date'<='End Date Fill'.SelectedDate

))

//Approveremail:LookUp('Approver Table','Approver Email id'=LookUp('Approver Table',


Approver=Approver_fill.SelectedText.Value,'Approver Email id'),'Approver Email id'),
Patch('Leave Request Table',Defaults(If(IsBlank(varitem),'Leave Request Table',varitem)),

'Employee ID':LookUp(Employee,User().Email='Email Id','Employee id'),

'Email id':User().Email,

'Employee Name':LookUp(Employee,User().Email='Email Id','Name (EmployeeName)'),

'Start Date':'Start Date Fill'.SelectedDate,

'End Date':'End Date Fill'.SelectedDate,

'Total Day':Value('Total day Fill'.Text),

'Approver Name':Approver_fill.SelectedItems,

//Approveremail:LookUp('Approver Table','Approver Email id'=LookUp('Approver Table',


Approver=Approver_fill.SelectedText.Value,'Approver Email id'),'Approver Email id'),

'Type Of Leave':Type_of_leave_Fill.SelectedText.Value,

Comment:'Comment Fill'.Text,

Status:"Pending"

);

//ForAll(Gallery11.AllItems,

// Patch('Leave Request Table',

//ThisRecord,{

// Subtitle10:Value

// });

Set(varnotification,true);

//Notify("Request Submitted Successfully",NotificationType.Success);

You might also like