GrantTemporaryAccessToCase

This function grant temporary case access for external user. If the user with the specified e-mail already exists, it will be used as a temporary user, otherwise a new user will be created.

Syntax

GrantTemporaryAccessToCase("email", "firstname","lastname", "accessFrom", "accessUntil", "subject", "bodybefore", "bodyafter", "stages", "phone");
GrantTemporaryAccessToCase("email", "firstname","lastname", "accessFrom", "accessUntil", "subject", "bodybefore", "bodyafter", "stages", "buttons");
GrantTemporaryAccessToCase("email", "firstname","lastname", "accessFrom", "accessUntil", "subject", "bodybefore", "bodyafter", "stages", "buttons", "phone");
GrantTemporaryAccessToCase("email", "firstname","lastname", "accessFrom", "accessUntil", "subject", "bodybefore", "bodyafter", "stages" );

Function arguments

  • email – (String) User email
  • user first name – (String) User first name
  • user last name – (String) User last name
  • access from – (DateWithTime) Start date of temporary access
  • access until – (DateWithTime) End date of temporary access
  • subject – (String) Mail subject
  • bodybefore – (String) Text before link in mail
  • bodyafter – (String) Text after link in mail
  • stage – (String) Stages on which there will be temporary access. Stages separated ’,’ or ’;’
  • buttons – (String) [Optional] Buttons, that will be shown in case. Write those with separator „;” or „,” ALLOWED VALUES: [att | comm | sign | print | history | casestate | diagram ]
  • phone – (String) [Optional] User phone number for additional authenticationExplanation of abbreviations in parameter „buttons”

    att- allow adding attachment

    sign – allow signing case

    comm – allow adding comments

    print – allow printing case

    history – allow to view history

    casestate – allow to view case state

    attList – allow list of attachments

    commList – show list of comments

    signList – show list of signatures

    connectedcases – show list of connected cases

    diagram – allow to view diagram

Return value

This function returns Boolean.
This function always returns true

Examples

Example 1:
Additional authentication by user phone number.

GrantTemporaryAccessToCase("test@mail.pl", "First name", "Last name", "DateTime("2019-11-04")", "DateTime("2021-11-04")", "Grant temporary case access", "Text before link", "Text after link", "stage1, stage2", "7777777");

Example 2:
In this case additional authentication will be by mail.

GrantTemporaryAccessToCase("test@mail.pl", "First name", "Last name", "DateTime("2019-11-04")", "DateTime("2021-11-04")", "Grant temporary case access", "Text before link", "Text after link", "stage1, stage2");

Example 3:
In this case additional authentication will be by mail and buttons addAtachment and addComment will be shown.

GrantTemporaryAccessToCase("test@mail.pl", "First name", "Last name", "DateTime("2019-11-04")", "DateTime("2021-11-04")", "Grant temporary case access", "Text before link", "Text after link", "stage1, stage2", "att;comment;");
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.