Difference between revisions of "User insertPoints"
Line 2: | Line 2: | ||
{{HelpFiles}} | {{HelpFiles}} | ||
− | ====User_insertPoints==== | + | ==== User_insertPoints ==== |
Add points to a user | Add points to a user | ||
Line 8: | Line 8: | ||
'''Syntax''' | '''Syntax''' | ||
− | User_insertPoints(''points, description, userResourceId'') | + | User_insertPoints(''points, description''): add points for a user in current RPQ context. '''Note''': use this function so we can analyze points data by questionnaire and have tracking infomation |
+ | |||
+ | User_insertPoints(''points, description, userResourceId''): add manual transaction point for a user | ||
'''Arguments''' | '''Arguments''' | ||
− | * ''points'': is a ''number ''expression. It is the number of points to add | + | *''points'': is a ''number ''expression. It is the number of points to add |
− | * ''description'': is a ''string ''expression. It is the description of the transaction | + | *''description'': is a ''string ''expression. It is the description of the transaction |
− | * ''userResourceId'': is a ''number ''expression. It is the resource id of a user | + | *''userResourceId'': is a ''number ''expression. It is the resource id of a user |
'''Return value''' | '''Return value''' | ||
Line 26: | Line 28: | ||
'''Availability''' | '''Availability''' | ||
− | Version 5.6 | + | Version 5.6 __NOTOC__ |
− | __NOTOC__ | ||
<!-- imported from file: 6292.htm--> | <!-- imported from file: 6292.htm--> |
Revision as of 09:40, 16 March 2016
User_insertPoints
Add points to a user
Syntax
User_insertPoints(points, description): add points for a user in current RPQ context. Note: use this function so we can analyze points data by questionnaire and have tracking infomation
User_insertPoints(points, description, userResourceId): add manual transaction point for a user
Arguments
- points: is a number expression. It is the number of points to add
- description: is a string expression. It is the description of the transaction
- userResourceId: is a number expression. It is the resource id of a user
Return value
empty
Example
User_insertPoints(120, "some description", 46898);
Availability
Version 5.6