Skip to content

Commit

Permalink
Feature GitHub:11200
Browse files Browse the repository at this point in the history
  • Loading branch information
yannicktrinh committed Nov 21, 2024
1 parent e8590c0 commit 60ddcf1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Project/Sources/Classes/Office365Calendar.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Function getCalendar($inID : Text; $inSelect : Text) : Object
End if

If (Length(String($inSelect))>0)
$urlParams:=$urlParams+"?$select="+$inSelect
$urlParams+="?$select="+$inSelect
End if

var $URL : Text:=This._getURL()+$urlParams
Expand Down Expand Up @@ -64,24 +64,24 @@ Function getCalendarList($inParameters : Object) : Object
$urlParams+="/calendar"

If (Length(String($inParameters.search))>0)
$urlParams:=$urlParams+$delimiter+"$search="+$inParameters.search
$urlParams+=($delimiter+"$search="+$inParameters.search)
$delimiter:="&"
$headers:={ConsistencyLevel: "eventual"}
End if
If (Length(String($inParameters.filter))>0)
$urlParams:=$urlParams+$delimiter+"$filter="+$inParameters.filter
$urlParams+=($delimiter+"$filter="+$inParameters.filter)
$delimiter:="&"
End if
If (Length(String($inParameters.select))>0)
$urlParams:=$urlParams+$delimiter+"$select="+$inParameters.select
$urlParams+=($delimiter+"$select="+$inParameters.select)
$delimiter:="&"
End if
If (Not(Value type($inParameters.top)=Is undefined))
$urlParams:=$urlParams+$delimiter+"$top="+Choose(Value type($inParameters.top)=Is text; $inParameters.top; String($inParameters.top))
$urlParams+=($delimiter+"$top="+Choose(Value type($inParameters.top)=Is text; $inParameters.top; String($inParameters.top)))
$delimiter:="&"
End if
If (Length(String($inParameters.orderBy))>0)
$urlParams:=$urlParams+$delimiter+"$orderBy="+$inParameters.orderBy
$urlParams+=($delimiter+"$orderBy="+$inParameters.orderBy)
$delimiter:="&"
End if

Expand Down

0 comments on commit 60ddcf1

Please sign in to comment.