Print

GrantTemporaryAccessToCase

This function grants temporary access to some case for an 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.

CAUTION! When the external user has the same e-mail address as some interal one then this external user will be treated as the internal-type user and the GrantTemporaryAccessToCase() function will not work (i.e. it will not send any access code vie e-mail or text message/SMS).

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 attachmentsign – 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;");

See also: What to check when a text message/SMS does not come out from AMODIT

Czy artykuł był pomocny?
0 na 5 gwiazdek
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
How Can We Improve This Article?