{"id":115174,"date":"2021-10-11T14:18:04","date_gmt":"2021-10-11T05:18:04","guid":{"rendered":"https:\/\/support.questetra.com\/?p=115174"},"modified":"2022-06-09T10:49:24","modified_gmt":"2022-06-09T01:49:24","slug":"quser-set-one-user-of-qorg-randomly-2021","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/addons\/quser-set-one-user-of-qorg-randomly-2021\/","title":{"rendered":"Quser, Set One User of Qorg Randomly"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><div class=\"su-box su-box-style-soft\" id=\"\" style=\"border-color:#cc66cc;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#ff99ff;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\">Quser, Set One User of Qorg Randomly<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\"> Extracts one user from the members of Qorg randomly and sets that user in the Quser data. It is also possible to exclude specific users from the extraction target. If there are no candidates in the population, an error will occur.<\/div><\/div>\n\n\n<div class=\"su-spoiler su-spoiler-style-modern-light su-spoiler-icon-plus-square-1\" data-anchor=\"configs\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Configs<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<ul class=\"fa-ul\">\n<li><span class=\"fa-li\"><i class=\"fal fa-caret-square-down fa-lg\"><\/i><\/span> A: Select QORG DATA<span style=\"color:#990000;\"> *<\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-edit fa-lg\"><\/i><\/span> B: If to be excluded, Set in each line (eg &#8220;a@example.com&#8221;)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"fal fa-caret-square-down fa-lg\"><\/i><\/span> C: Select QUSER DATA that stores Extracted QUSER (update)<span style=\"color:#990000;\"> *<\/span><\/li>\n<\/ul>\n<\/div><\/div>\n\n\n<div class=\"su-spoiler su-spoiler-style-modern-light su-spoiler-icon-plus-square-1 su-spoiler-closed\" data-anchor=\"script\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Script (click to open)<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ GraalJS Script (engine type: 2)\n\n\/\/\/\/\/\/\/\/ START &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\nmain();\nfunction main(){ \n\n\/\/\/\/ == Config Retrieving \/ \u5de5\u7a0b\u30b3\u30f3\u30d5\u30a3\u30b0\u306e\u53c2\u7167 ==\nconst qorgPocketPopulation = configs.getObject( &quot;SelectConfA&quot; ); \/\/\/ REQUIRED \/\/\/\/\/\/\/\/\/\/\/\nconst strExcludedMembers   = configs.get( &quot;StrConfB&quot; );          \/\/ not required \/\/\/\/\/\/\/\/\nconst quserPocketSelected  = configs.getObject( &quot;SelectConfC&quot; ); \/\/\/ REQUIRED \/\/\/\/\/\/\/\/\/\/\/\n\n\n\/\/\/\/ == Data Retrieving \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u306e\u53c2\u7167 ==\nconst qorgPopulation       = engine.findData( qorgPocketPopulation );\n  if( qorgPopulation     === null ){\n    throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                     &quot; Qorg {A} is null \\n&quot; );\n  }\n\/\/ com.questetra.bpms.core.event.scripttask.WorkflowEngine\n\/\/ https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024574471-R2300#WorkflowEngine\n\n\n\/\/\/\/ == Calculating \/ \u6f14\u7b97 ==\nlet   listQusers = quserDao.findByQgroup( qorgPopulation );\n  if( listQusers === null ){\n    throw new Error( &quot;\\n AutomatedTask UnexpectedQorgError:&quot; +\n                     &quot; Qorg {A} has no member \\n&quot; );\n  }\nlet numOfQusers = listQusers.size() - 0;\n\/\/ com.questetra.bpms.core.event.scripttask.QuserDaoWrapper\n\/\/ https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024574471-R2300#QuserDaoWrapper\n\nlet arrQusers = [];\nfor( let i = 0; i &lt; numOfQusers; i++ ){\n  arrQusers.push( (listQusers.get(i).getEmail() + &quot;&quot;) );\n  \/\/ com.questetra.bpms.core.event.scripttask.QuserView\n  \/\/ https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024574471-R2300#QuserView\n}\nif( strExcludedMembers !== &quot;&quot; ){\n  let arrExcludedMembers = strExcludedMembers.split(&#39;\\n&#39;);\n  for( let i = 0; i &lt; arrExcludedMembers.length; i++ ){\n    let numId = arrQusers.indexOf( arrExcludedMembers[i] );\n    if( numId &gt; -1 ){\n      arrQusers.splice( numId, 1 ); \/\/ remove 1 element at `numId`\n    }\n  }\n}\nif( arrQusers.length === 0 ){\n  throw new Error( &quot;\\n AutomatedTask UnexpectedQorgError:&quot; +\n                   &quot; Population is Zero \\n&quot; );\n}\n\nlet numRand = Math.floor( Math.random() * arrQusers.length );\nengine.log( &quot; AutomatedTask numRand: &quot; + numRand +\n            &quot; (&quot; + arrQusers.length + &quot;)&quot; );\nlet strSelected = arrQusers[ numRand ];\nlet quserSelected = quserDao.findByEmail( strSelected );\n\/\/ com.questetra.bpms.core.event.scripttask.QuserDaoWrapper\n\/\/ https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024574471-R2300#QuserDaoWrapper\n\n\n\/\/\/\/ == Data Updating \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u3078\u306e\u4ee3\u5165 ==\nengine.setData( quserPocketSelected, quserSelected );\n\n\n} \/\/\/\/\/\/\/\/ END &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/*\nNotes:\n- When the process reaches the automated task, the Qorg settings of the Workflow Platform are referred.\n    - To explicitly and automatically determine the person in charge.\n    - The Process Status &quot;Offered&quot; is avoided.\nAPPENDIX:\n- The random number generation depends on `Math.random()` (JavaScript).\n    - https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/Math\/random\n\nNotes-ja:\n- \u6848\u4ef6\u304c\u81ea\u52d5\u51e6\u7406\u5de5\u7a0b\u306b\u5230\u9054\u3057\u305f\u969b\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u57fa\u76e4\u306e Qorg \u8a2d\u5b9a\u3092\u53c2\u7167\u3057\u3001\u4e00\u4eba\u3092\u62bd\u51fa\u3057\u307e\u3059\u3002\n    - \u660e\u793a\u7684\u30fb\u81ea\u52d5\u7684\u306b\u62c5\u5f53\u8005\u3092\u6c7a\u3081\u305f\u3044\u5834\u5408\u306a\u3069\u306b\u5229\u7528\u3055\u308c\u307e\u3059\u3002\n    - \u30d7\u30ed\u30bb\u30b9\u72b6\u614b\u300c\u5f15\u304d\u53d7\u3051\u5f85\u3061\u300d\u3092\u56de\u907f\u3067\u304d\u307e\u3059\u3002\nAPPENDIX-ja:\n- \u4e71\u6570\u306e\u751f\u6210\u5206\u5e03\u306f `Math.random()` (JavaScript) \u306b\u4f9d\u5b58\u3057\u307e\u3059\u3002\n    - https:\/\/developer.mozilla.org\/ja\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/Math\/random\n*\/\n\n<\/code><\/pre><\/div>\n\n\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright\"><a href=\"#\"><img decoding=\"async\" src=\"data:image;base64,\niVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAzxJREFUWEfF\nl11IFFEUx3+jKJWIlWaCRl+mIBlr+mBShvUgQR8QiLaYUIG7BWJBECK7Dz4ISlZPukqZ0GL7ED0U\n5EOxG4IRGK0ViZVEkZpUfqBt1mZOzK6Tu7Oz7UwYe58G7j3\/87tn7jnnXoEoD0Gz\/3ZWIXIUgRJE\n8hDYBKxZtJ9C5B0CbkRcCNzGxDct2pEBrpOGlwuAGVihRRT4DtiIp4kTjP\/N5u8ANswIXAQSNDpW\nLvMgch4ztnD24QHaaQVO\/6NjpVkbJs6oaakD2OhG4NgyOffLiNzEjFGpGQqwvDuPGIlgAP8\/bwu3\n85w1ORiSDcQKsQxND9H\/uV9\/kEROB56JJQD\/aR9WO3CJcYlc2nWJym2VrIj1J8L8wjwPPz6k9lEt\ng1ODekA8xJMpZ8cSQDuXgbNqSi2FLdRsryEuJi5oWkTk\/sh9Su+V6gGQ1l7BxDnpww8gFRmYUMvz\nrKQs7pTeIXt1tqqTGe+MLwpdr7v0QEh1IlkqVn4AG5UI3FBTMGYaad3dSlJ8kqoD74KXpoEmrE+s\negCkrDiOGbscgWvASTWFQxsPcbX4KqkrU1Ud\/Pj1g0Z3Iw1PG\/QBQCcmTskReIpAXjiF3sO97Enb\nozr9\/ut7Kh5U8PjTY30AIm7M7JQjMBnQWEKEDmw4QEdxBxkJGUFzc\/NztDxvwfLEos+5f\/UUJtbK\nAKKaQmFqIZadFgrWFdDzoYf0hHTyU\/KJEWJ4O\/MW15iLsi1lTHunaX7WjP2NXR+ICSEsgJT7zoNO\nn3NpSCk38X2CgYkBZn\/Okrs2l82Jm31FSRojnhGqe6t9oJpHAEDIL6gz1GHNt\/4pPJFEJUDHsAOj\nM6TchzMN+AU2Qg6hY7+D8q3lkfwGzb+YfMGOWzu02SgOYUga9h3po2h9kTaxxVWjnlGqXFU4x5xa\n7ILSMKQQvSx7idR89AxdAIpCFFKK\/zOAohRL21Q0o+593VRkViAstgstkXB\/cbP37l5flkQYimYk\nrVa0Yyn89hI7hhSDJojxb+PU99fT+aozkvMw7Vgyi3AhiaSsaT7shUS2juqVTIaI6qX0\/0RC57V8\nKRJRfJjIEFF9mgUe66g9TjXl1r8v+g1BJygwJmYJZwAAAABJRU5ErkJggg==\n\" alt=\"\"\/><\/a><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-cloud-download-alt\"><\/i> Download<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a rel=\"noreferrer noopener\" href=\"https:\/\/drive.google.com\/file\/d\/1YWkgywhn-wFYyRbmjrLarBHOboKgWdZj\/view?usp=drivesdk\" target=\"_blank\">quser-set-one-user-of-qorg-randomly-2021.xml<\/a><\/li><li><a href=\"https:\/\/drive.google.com\/file\/d\/1H2RHZ8lrTIn1zWS1rLqV4lJQd_i91LOU\/view?usp=sharing\" target=\"_blank\" rel=\"noreferrer noopener\">quser-set-one-user-of-qorg-randomly-2021-byId.xml<\/a><\/li><\/ul>\n\n\n\n<p class=\"has-text-align-right has-small-font-size wp-block-paragraph\">2021-10-11 (C) Questetra, Inc. (MIT License)<br><a href=\"https:\/\/support.questetra.com\/en\/addons\/quser-set-one-user-of-qorg-randomly-2021\/\">https:\/\/support.questetra.com\/addons\/quser-set-one-user-of-qorg-randomly-2021\/<\/a><br><i class=\"fal fa-info-circle\"><\/i> The Add-on import feature is available with <span style=\"color:#4a86e8\" class=\"has-inline-color\"><strong>Professional<\/strong><\/span> edition.<br>Freely modifiable JavaScript (ECMAScript) code. No warranty of any kind.<\/p>\n\n\n<div class=\"su-divider su-divider-style-dashed\" style=\"margin:30px 0;border-width:8px;border-color:#009900\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-lightbulb-exclamation\"><\/i> Notes<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>When the process reaches the automated task, it refers to the Qorg settings of the workflow infrastructure and extracts one person.<ul><li>This is used when you want to decide the person in charge explicitly and automatically.<\/li><li>The Process Status &#8220;Offered&#8221; can be avoided.<\/li><\/ul><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-images\"><\/i> Capture<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-capture-en.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"675\" data-attachment-id=\"115162\" data-permalink=\"https:\/\/support.questetra.com\/en\/maintenance\/maintenance-20251117\/attachment\/quser-set-one-user-of-qorg-randomly-2021-capture-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-capture-en.png?fit=1200%2C675&amp;ssl=1\" data-orig-size=\"1200,675\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"quser-set-one-user-of-qorg-randomly-2021-capture-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-capture-en.png?fit=1024%2C576&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-capture-en.png?resize=1200%2C675&#038;ssl=1\" alt=\"Extracts one user from the members of Qorg randomly and sets that user in Quser data. It is also possible to exclude specific users from the extraction target. If there are no candidates in the population, an error will occur.\" class=\"wp-image-115162\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-capture-en.png?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-capture-en.png?resize=560%2C315&amp;ssl=1 560w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-capture-en.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-capture-en.png?resize=768%2C432&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default q-box\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"582\" data-attachment-id=\"115166\" data-permalink=\"https:\/\/support.questetra.com\/en\/maintenance\/maintenance-20251117\/attachment\/quser-set-one-user-of-qorg-randomly-2021-config-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-config-en.png?fit=1199%2C682&amp;ssl=1\" data-orig-size=\"1199,682\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"quser-set-one-user-of-qorg-randomly-2021-config-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-config-en.png?fit=1024%2C582&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-config-en-1024x582.png?resize=1024%2C582&#038;ssl=1\" alt=\"Extracts one user from the members of Qorg randomly and sets that user in Quser data. It is also possible to exclude specific users from the extraction target. If no candidates in the population, an error will occur.\" class=\"wp-image-115166\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-config-en.png?resize=1024%2C582&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-config-en.png?resize=554%2C315&amp;ssl=1 554w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-config-en.png?resize=768%2C437&amp;ssl=1 768w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-config-en.png?w=1199&amp;ssl=1 1199w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-book\"><\/i> Appendix<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>The random number generation depends on <code>Math.random()<\/code> (JavaScript).<ul><li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/Math\/random\" rel=\"nofollow\">https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/Math\/random<\/a><\/li><\/ul><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-balance-scale\"><\/i> See also<\/h3>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-questetra-support wp-block-embed-questetra-support\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"tUerNGB903\"><a href=\"https:\/\/support.questetra.com\/en\/addons\/quser-set-one-user-of-qorg-using-round-robin-2021\/\">Quser, Set One User of Qorg using Round-Robin<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Quser, Set One User of Qorg using Round-Robin&#8221; &#8212; Questetra Support\" src=\"https:\/\/support.questetra.com\/addons\/quser-set-one-user-of-qorg-using-round-robin-2021\/embed\/#?secret=V6e2OY6lZp#?secret=tUerNGB903\" data-secret=\"tUerNGB903\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Extracts one user from the members of Qorg randomly and sets that user in the Quser data. It is also possible to exclude specific users from the extraction target. If there are no candidates in the population, an error will occur.<\/p>\n","protected":false},"author":2,"featured_media":115170,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","advanced_seo_description":"Extracts one user from the members of Qorg randomly and sets that user in Quser data. It is also possible to exclude specific users from the extraction target. If no candidates in the population, an error will occur.","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[168],"tags":[319,369,513],"class_list":["post-115174","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-addons","tag-inquiry-response","tag-quserdao","tag-service-request"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?fit=1200%2C675&ssl=1","uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?fit=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?resize=900%2C675&ssl=1",900,675,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?resize=600%2C675&ssl=1",600,675,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?resize=800%2C675&ssl=1",800,675,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-en.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"IMAMURA, Genichi","author_link":"https:\/\/support.questetra.com\/en\/author\/imamuragenichi\/"},"uagb_comment_info":1,"uagb_excerpt":"Extracts one user from the members of Qorg randomly and sets that user in the Quser data. It is also possible to exclude specific users from the extraction target. If there are no candidates in the population, an error will occur.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-tXE","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":115161,"url":"https:\/\/support.questetra.com\/en\/addons\/quser-set-one-user-of-qorg-using-round-robin-2021\/","url_meta":{"origin":115174,"position":0},"title":"Quser, Set One User of Qorg using Round-Robin","author":"IMAMURA, Genichi","date":"2021-10-11","format":false,"excerpt":"Extracts one user from the members of Qorg in order using a round robin method and sets that user in the Quser data. It is also possible to exclude specific users from the extraction target. If there are no candidates in the population, an error will occur.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Quser, Set One User of Qorg using Round-Robin","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-using-round-robin-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-using-round-robin-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-using-round-robin-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-using-round-robin-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-using-round-robin-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":115192,"url":"https:\/\/support.questetra.com\/ja\/addons\/quser-set-one-user-of-qorg-randomly-2021\/","url_meta":{"origin":115174,"position":1},"title":"Quser, Qorg \u306e\uff11\u4eba\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u30bb\u30c3\u30c8","author":"IMAMURA, Genichi","date":"2021-10-11","format":false,"excerpt":"Qorg \u306e\u30e1\u30f3\u30d0\u306e\u4e2d\u304b\u3089\u30e6\u30fc\u30b6\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u62bd\u51fa\u3057\u3001Quser \u30c7\u30fc\u30bf\u306b\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002\u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u3092\u62bd\u51fa\u5bfe\u8c61\u304b\u3089\u9664\u5916\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\u62bd\u51fa\u6bcd\u96c6\u56e3\u306b\u5019\u88dc\u304c\u3044\u306a\u3044\u5834\u5408\u3001\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\u3002","rel":"","context":"In &quot;\u30a2\u30c9\u30aa\u30f3&quot;","block_context":{"text":"\u30a2\u30c9\u30aa\u30f3","link":"https:\/\/support.questetra.com\/ja\/category\/addons\/"},"img":{"alt_text":"Quser, Qorg \u306e\uff11\u4eba\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u30bb\u30c3\u30c8","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-randomly-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":84698,"url":"https:\/\/support.questetra.com\/en\/addons\/converter-quser-to-email-string\/","url_meta":{"origin":115174,"position":2},"title":"Converter: Quser to Email-String","author":"IMAMURA, Genichi","date":"2020-02-18","format":false,"excerpt":"Converts Quser type data to Email string by referencing the latest information registered in the Workflow Platform. It is also possible to obtain \"User ID\", \"User Name\", \"Main Organization\", \"ID of Main Organization\", \"Name of Main Organization\".","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Converter: Quser to Email-String","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/02\/Converter-Quser-to-Email-String-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/02\/Converter-Quser-to-Email-String-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/02\/Converter-Quser-to-Email-String-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/02\/Converter-Quser-to-Email-String-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/02\/Converter-Quser-to-Email-String-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":117448,"url":"https:\/\/support.questetra.com\/en\/addons\/singleline-string-set-one-line-from-multiline-randomly-2021\/","url_meta":{"origin":115174,"position":3},"title":"Singleline String, Set One Line from Multiline Randomly","author":"IMAMURA, Genichi","date":"2021-11-29","format":false,"excerpt":"Extracts one line randomly from the multi-line string and sets that line in singleline string data. For example, it can be used to test sales copy or to set the response text for lottery results. It is also possible to exclude specific rows from the selection candidates.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Singleline String, Set One Line from Multiline Randomly","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/11\/singleline-string-set-one-line-from-multiline-randomly-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/11\/singleline-string-set-one-line-from-multiline-randomly-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/11\/singleline-string-set-one-line-from-multiline-randomly-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/11\/singleline-string-set-one-line-from-multiline-randomly-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/11\/singleline-string-set-one-line-from-multiline-randomly-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":115185,"url":"https:\/\/support.questetra.com\/ja\/addons\/quser-set-one-user-of-qorg-using-round-robin-2021\/","url_meta":{"origin":115174,"position":4},"title":"Quser, Qorg \u306e\uff11\u4eba\u3092\u9806\u7e70\u308a\u306b\u30bb\u30c3\u30c8","author":"IMAMURA, Genichi","date":"2021-10-11","format":false,"excerpt":"Qorg \u306e\u30e1\u30f3\u30d0\u306e\u4e2d\u304b\u3089\u30e6\u30fc\u30b6\u3092\u9806\u7e70\u308a\uff08\u30e9\u30a6\u30f3\u30c9\u30ed\u30d3\u30f3\uff09\u306b\u62bd\u51fa\u3057\u3001Quser \u30c7\u30fc\u30bf\u306b\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002\u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u3092\u62bd\u51fa\u5bfe\u8c61\u304b\u3089\u9664\u5916\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\u62bd\u51fa\u6bcd\u96c6\u56e3\u306b\u5019\u88dc\u304c\u3044\u306a\u3044\u5834\u5408\u3001\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\u3002","rel":"","context":"In &quot;\u30a2\u30c9\u30aa\u30f3&quot;","block_context":{"text":"\u30a2\u30c9\u30aa\u30f3","link":"https:\/\/support.questetra.com\/ja\/category\/addons\/"},"img":{"alt_text":"Quser, Qorg \u306e\uff11\u4eba\u3092\u9806\u7e70\u308a\u306b\u30bb\u30c3\u30c8","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-using-round-robin-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-using-round-robin-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-using-round-robin-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-using-round-robin-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/quser-set-one-user-of-qorg-using-round-robin-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":96508,"url":"https:\/\/support.questetra.com\/en\/addons\/singleline-tsv-string-extract-cell\/","url_meta":{"origin":115174,"position":5},"title":"Singleline TSV String, Extract Cell","author":"IMAMURA, Genichi","date":"2020-10-16","format":false,"excerpt":"Extracts the cell value of the specified ID. The ID starts from zero. The extracted cell string can be stored not only in the STRING type data but also in the NUMERIC type, DATE type, DATETIME type, SELECT type, USER type, and ORG type data.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Singleline TSV String, Extract Cell","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/Singleline-TSV-String-Extract-Cell-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/Singleline-TSV-String-Extract-Cell-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/Singleline-TSV-String-Extract-Cell-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/Singleline-TSV-String-Extract-Cell-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/Singleline-TSV-String-Extract-Cell-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/115174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=115174"}],"version-history":[{"count":5,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/115174\/revisions"}],"predecessor-version":[{"id":115439,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/115174\/revisions\/115439"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/115170"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=115174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=115174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=115174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}