Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
User Experience
Lawson Design Studio
Need to create a work unit message longer than 60 characters.
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Saef
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5226
People Online:
Visitors:
437
Members:
0
Total:
437
Online Now:
New Topics
User Group Announcements
Carolina User Group Meeting
12/20/2024 3:15 PM
Date & Time: February 6, 2025, 8:30am - 4:00pm
S3 Systems Administration
ADFS certificate - new cert
12/3/2024 9:38 PM
The certificates on the windows boxes expired and
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Lawson S3 Procurement
ED501 Error: Map 850 not supported by /law/c15vda/lawson/test10/edi/bin/laws_out_91
11/12/2024 3:47 PM
Tried runnning ED501 and getting the atathced erro
Lawson S3 HR/Payroll/Benefits
Error
11/6/2024 9:54 PM
When I try to enroll a retiree in 72.1 health plan
Infor ERP (Syteline)
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:24 PM
Hi, I need help with an error on syteline while us
Dealing with Lawson / Infor
Implementing Lawson v10 with Cerner Surginet, Case Cart Picking, and Quick Adds for the OR
10/29/2024 4:20 PM
Hi Everyone, I am wondering if there is any org
Lawson S3 HR/Payroll/Benefits
Canada Tax Calculation (Federal and Provincial) Issue
10/23/2024 5:00 AM
Initially, we had problem with CPP2 calculation is
Lawson S3 HR/Payroll/Benefits
CA Section 125 401k Plan
10/22/2024 10:13 PM
Does anyone have any recommendations on how to fac
S3 Systems Administration
Running AC120 deleted records from ACMASTER table
10/22/2024 3:40 PM
We recently ran the AC120 as normal and somehow it
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1372
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
User Experience
Lawson Design Studio
Need to create a work unit message longer than 60 characters.
Please
login
to post a reply.
2 Replies
0
Subscribed to this topic
12 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Randy Jacoy
Veteran Member
Posts: 46
2/5/2013 9:36 PM
We have a portal form that our users use to add a message to a work unit. The call is as follows:
http://
/bpm/inbasket?FUNCTION=workdetail
&RDUSER=
&WORKUNIT=1518&APPRODLINE=LOGAN&UPTYPE=MSG&UPDTACTION=A&MSGID=uniqid1234&MSGCONTENT=This is a test message.
This call adds an entry to tables WFMSGHDR and WFMSGDTL in the LOGAN database. Looking in the WFMSGDTL table you'll see that the MESSAGE (MSGCONTENT above) field size is 60 characters. Our users want to add messages longer than 60 characters. I can see that there is a MESSAGE_SEQ and MESSAGE_APPEND field that would imply you could insert multiple WFMSGDTL records for the same message however I have not been able to get that to work using the above call and I can't find any documentation on how to do it.
I tried sending a message longer than 60 characters using the above call but it failed (even though the return from the call was "OK"). The only way I knew it failed was the fact that the message didn't appear when I checked messages for that work unit. I also tried breaking up the message into 60 character chunks and sending them with the above call using the same MSGID for each chunk. The first chunk would work however subsequent calls using the same MSGID would fail silently. It seems to me that I should be able to specify an append flag or a sequence number but I can't for the life of me figure out how. I know it can be done because you can do it in Process Flow Administrator (Workunit messages). Any help would be greatly appreciated.
Steven Gray
Advanced Member
Posts: 21
2/20/2013 3:41 PM
Not sure why yours does not work, but I notice the &RDUSER= is missing a value. Here is an example I used to create a list that displays as an Inbasket message. The 60 char max is observed within each MESSAGE field, and a new MSG-SEQ is added for the line continuation . The "EOL" forces a newline when the message is displayed. I also attempt to delete the message before it is added.
vURL = host + "/bpm/inbasket?FUNCTION=workdetail"
vURL += "&RDUSER=lawson"
vURL += "&WORKUNIT=" + oWorkUnit
vURL += "&APPRODLINE=" + appProdline
vURL += "&UPTYPE=MSG"
vURL += "&UPDTACTION=A"
vURL += "&MSGID=DeptList"
vURL += "&MSGCONTENT=Forward+to+Department+ApproversEOL"
vURL += URLEncoder("DeptApprover1: " + vName1 + "EOL")
vURL += URLEncoder("DeptApprover2: " + vName2 + "EOL")
vURL += URLEncoder("DeptApprover3: " + vName3 + "EOL")
vURL += URLEncoder("DeptApprover4: " + vName4 + "EOL")
vURL += URLEncoder("DeptApprover5: " + vName5 + "EOL")
vURL += URLEncoder("DeptApprover6: " + vName6 + "EOL")
Hope this helps.
Randy Jacoy
Veteran Member
Posts: 46
2/20/2013 6:58 PM
Steven,
Thank you for your reply. We do populate the RDUSER field; I just removed the userid for posting purposes.
Your inbasket add looks identical to mine. The only difference I saw was that your MSGID (DeptList) was 8 characters alpha as opposed to the 10 digits numeric I was using. I hard coded a MSGID of 8 characters and it worked as you described; the message was added and the sequence number was incremented by 1 for each 60 character segment. I then tried a 10 character MSGID and that worked too. Finally I tried a 10 digit numeric MSGID (which is what we normally use) and it still worked! In fact it worked every time. I swear we used to get an error when the message exceeded 60 characters but now it seems to be working. I'll chalk it up to sunspots or something.
Thank you for posting your code
.
It prompted me to do additional testing which let me discover the function was working correctly.
Please
login
to post a reply.