Getting attachment name from email endpoint
What would be the parameter to get the attachment name from using the Email endpoint ?
Use the Document function in a Set Value as follows
getDocAttribute(/process_data/@inputDocument,'wsfilename')
where @inputDocument is the variable name for the attachment.
Steve
Similar Messages
-
Get Attachment Name and from address of mail in bpel process
Hi All,
I am using UMS Adapter to poll email server and getting the attachment and saving it to local disk.
In Payload from UMS adapter i am getting href of the attachment but I am not able to figure out as to how to get Attachment Name and From Address of a mail in my Bpel process.
please guide me in getting them .
Thanks in Advance
Divyanshu1. Double click on your composite receive activity.
2. Go to Properties tab in your receive activity.
3. Click "+".
4. Window that pops up,scroll down and select "jca.ums.from" and store it in some variable say fromAddress (Make sure before adding this property u create fromAddress variable of string data type).
5. Click OK.
6. In the same way add property for "jca.ums.msg.content-description" from drop down and assing it to some variable.
you are good to go.
Hope this helps.
Regards,
Karan
Oracle Fusion Middleware Blog -
I am unable to create adobe file from attached document from email
I am unable to create adobe file from attached document from email. No 'open in' link is available as given in directions. What to do?
Because there is no abode on the IOS. you'll need to do a search in the app store to resolve your issue.
-
FM for getting MONTH name from DATE.
Hi all ,
We have a requirement to get Month name from the DATE,e.g IF date is 01/01/2008 we need a FM which can generate month name as 'JANUARY'.
\[removed by moderator\]
Thanks and Regards
Kiran
Edited by: Jan Stallkamp on Jul 30, 2008 4:26 PMHi,
Here is the code u required...
REPORT ZASHU_MONTH_NAMES_GET.
data:r_code type sy-subrc.
data:mnames type standard table of T247 with header line.
CALL FUNCTION 'MONTH_NAMES_GET'
EXPORTING
LANGUAGE = SY-LANGU
IMPORTING
RETURN_CODE = r_code
TABLES
month_names = mnames.
EXCEPTIONS
MONTH_NAMES_NOT_FOUND = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
write:/ mnames.
Thanks & Regards
Ashu Singh -
Getting user name from sopa header
How should get user name from soap header in my udf...?i searched in sdn,but not get exact solution...
I din't get this with SRemoteUser
1. i've enabled " Do Not Use SOAP Envolope"
2.Enabled ASMA
3.Variable Transport Binding .
used the following code as well:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey user = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/SOAP", "SRemoteUser");
conf.get(user);
But not value in it.. Correct me if iam wrong.. -
Fix for getting track names from GraceNote.
Finally found a Windows fix for getting iTunes to get track names from GraceNote (see below). It works!!!
Fixing iTunes CDDB lookup - more details
Since Apple’s forums don’t seem to support permalinks, the hint I previously posted about fixing iTunes for Windows’ connection to CDDB isn’t complete. Here’s how to reestablish connection to CDDB if your track lookups start failing:
Quit iTunes for Windows.
In Internet Explorer, go to Tools | Internet Options, click on the Connections tab, and click on the LAN Settings button.
In the dialog that follows, uncheck the checkbox about using a proxy. Hit OK, then OK again.
Open RegEdit and look for the following key: HKEYLOCALUSER\Software\CDDB\Control\2.0. Delete this key.
Open iTunes and insert the CD. iTunes should now be able to connect to CDDB again—at least, until it forgets again later...
If necessary, reenable your proxy settings.
Microsoft —Tim Jarrett @ 2/12/04; 8:59:45 AM Discuss Comment (0) Cosmos [#]
Cheers.
Tom W.
Other OSFinally found a Windows fix for getting iTunes to get
track names from GraceNote (see below). It works!!!
Fixing iTunes CDDB lookup - more details
Since Apple’s forums don’t seem to support
permalinks, the hint I previously posted about fixing
iTunes for Windows’ connection to CDDB isn’t
complete. Here’s how to reestablish connection to
CDDB if your track lookups start failing:
Quit iTunes for Windows.
In Internet Explorer, go to Tools | Internet Options,
click on the Connections tab, and click on the LAN
Settings button.
In the dialog that follows, uncheck the checkbox
about using a proxy. Hit OK, then OK again.
Open RegEdit and look for the following key:
HKEYLOCALUSER\Software\CDDB\Control\2.0. Delete
this key.
Open iTunes and insert the CD. iTunes should now be
able to connect to CDDB again—at least, until it
forgets again later...
If necessary, reenable your proxy settings.
Microsoft —Tim Jarrett @ 2/12/04; 8:59:45 AM Discuss
Comment (0) Cosmos [#]
Cheers.
Tom W.
Other OS
I followed this exactly and it didn't work!
When I put in a CD and click on Get CD Track Names the "Accessing Gracenote CDDB" box flashes up and then disappears and nothing happens!
Any suggestions???
Thanks,
Rach -
Getting column names from cursor
Hi all
I have procedure which produces list of applied for jobs web page(using htp. package)
I got result in cursor, but have to provide dinamic sort, based on colimn pressed
procedure my_application_list
(pi_resume_num in varchar2 default null
,pi_sort_col in varchar2 default null
,pi_page_no in varchar2 default null
,pi_action in varchar2 default null
,pi_msg in varchar2 default null
is
CURSOR cur_job IS
SELECT jtl.JOB_TITLE
,jtl.COMPANY_NAME
,a.APPLY_DATE
,a.lang
,a.job_id
FROM job_tl jtl, applied_for_job a, gateway gt
WHERE a.job_seeker_id=app.job_Seeker
AND a.job_id=jtl.job_id
AND a.lang=jtl.lang
AND a.gateway=gt.gateway
AND jtl.lang=(SELECT substr(MIN(lt.order_list||jtl0.lang),2) lang
FROM job_tl jtl0
,language_tl lt
WHERE jtl0.job_id = a.job_id
AND jtl0.lang=lt.lang
AND lt.gui_lang=app.language)
ORDER BY pi_sort_col
rest of code
The columns displayed in web page are Job_title, Company_name and Applied_date
This page is displyed well, bu without column nmes at the top. I am trying to get column names from cursor in order to have ORDER BY <pi_sort_col>
can someone help how i can get those column names:Job_title, Company_name and Applied_date
User will be able to click on column and sort
Thank in advance .I appreciate any helpHi Francisco
Here is my code
CREATE OR REPLACE PACKAGE BODY cc_web_application_list
IS
TYPE COL_NAME_LIST IS TABLE OF VARCHAR2(100)
INDEX BY BINARY_INTEGER;
TYPE COL_ORDER_LIST IS TABLE OF VARCHAR2(30)
INDEX BY BINARY_INTEGER;
col_name_t col_name_list;
col_order_t col_order_list;
procedure my_application_list
(pi_resume_num in varchar2 default null
,pi_sort_col in varchar2 default null
,pi_page_no in varchar2 default null
,pi_action in varchar2 default null
,pi_msg in varchar2 default null
is
l_my_page_no PLS_INTEGER := TO_NUMBER(nvl(pi_page_no,1));
l_js_name gam_user.username%TYPE;
l_js_first_name gam_user.first_name%TYPE;
l_cnt PLS_INTEGER := 0;
l_scr_lines PLS_INTEGER := 0;
l_curline PLS_INTEGER;
l_jobs_applied PLS_INTEGER;
l_total_rec PLS_INTEGER;
l_total_pages PLS_INTEGER;
l_pos PLS_INTEGER;
l_first PLS_INTEGER :=0;
last PLS_INTEGER :=0;
l_lines PLS_INTEGER := 10;
col_name VARCHAR2(100) := col_name_t(3) ;
col_order VARCHAR2(30) := 'DESC';
str VARCHAR2(2000);
TYPE display_rec IS TABLE OF VARCHAR2(500) INDEX BY BINARY_INTEGER;
display display_rec;
TYPE page_table_type IS TABLE OF PLS_INTEGER INDEX BY BINARY_INTEGER;
page_number page_table_type;
CURSOR cur_job IS
SELECT jtl.JOB_TITLE job_title
,jtl.COMPANY_NAME company_name
,a.APPLY_DATE apply_date
,a.lang
,a.job_id
FROM job_tl jtl, applied_for_job a, gateway gt
WHERE a.job_seeker_id=app.job_Seeker
AND a.job_id=jtl.job_id
AND a.lang=jtl.lang
AND a.gateway=gt.gateway
ORDER BY a.apply_date;
This decode is a problem
decode(col_order,'ASC'
,decode(col_name
,col_name_t(1), jtl.job_title
,col_name_t(2), jtl.company_name
,col_name_t(3), TO_CHAR(a.apply_date, 'YYYYMMDDhh24miss')
,a.apply_date)
) ASC
,decode(col_order,'DESC'
,decode(col_name
,col_name_t(1), jtl.job_title
,col_name_t(2), jtl.company_name
,col_name_t(3), TO_CHAR(a.apply_date, 'YYYYMMDDhh24miss')
,a.apply_date)
) DESC
,a.apply_date
TYPE rec_one IS TABLE OF cur_job%ROWTYPE INDEX BY BINARY_INTEGER;
r rec_one;
BEGIN
BEGIN
SELECT username,first_name
INTO l_js_name,l_js_first_name
FROM gam_user
WHERE user_id = App.job_seeker;
EXCEPTION
WHEN OTHERS THEN NULL;
END;
Cc_Pkg_Elements.p_page_top_job_seeker(
'Personal Job List'
,REPLACE(Txt_Proc_My_Joblist.title_job_list
,'##first_name##',l_js_first_name),'N' ,TRUE ,'Pxx');
----- get numer of records returned by query
SELECT COUNT(1)
INTO l_total_rec
FROM job_tl jtl,applied_for_job a
,gateway gt
WHERE a.job_id = jtl.job_id
AND a.job_seeker_id = App.job_seeker
AND a.gateway = gt.gateway ;
------get number of pages
l_total_pages:=CEIL (l_total_rec/l_lines);
l_jobs_applied := 0;
col_name := pi_sort_col;
col_order := pi_sort_col;
--get first positions
l_first := (nvl(l_my_page_no,1) - 1) * l_lines + 1;
FOR rec IN cur_job LOOP
l_cnt := l_cnt + 1;
EXIT WHEN l_cnt > l_first + l_lines - 1;
IF l_cnt >= l_first THEN
l_scr_lines := l_scr_lines + 1;
r(l_scr_lines) := rec; --assign counter from loop to r index
IF rec.apply_date IS NOT NULL THEN
l_jobs_applied := l_jobs_applied + 1;
END IF;
END IF;
END LOOP;
htp.p('<FORM ACTION="'||App.gateway||'8.my_application_list" METHOD="post">');
htp.p('<table align="center">');
htp.p('<tr><td>');
IF r.COUNT = 0 THEN
Web_Pkg_Elements.doc_msg(Txt_Proc_My_Joblist.no_jobs);
END IF;
htp.p('</td></tr>');
htp.p('</table>');
--table_heading(col_name ,col_order );
htp.p('<table align=center>');
htp.p('<tr align="center"><td>');
FOR i IN 1..l_total_pages LOOP
page_number(i) := i;
IF page_number(i) = l_total_pages THEN
htp.p('');
||'');
Web_Pkg_Elements.doc_val_small(page_number(i)||'</A>');
ELSE
htp.p('');
|'||'');
Web_Pkg_Elements.doc_val_small(page_number(i)||' |'||'</A>');
END IF;
END LOOP;
htp.p('</td></tr>');
htp.p('</table>');
htp.p('<table align=center>');
FOR l_curline IN 1..l_scr_lines LOOP
display(1) := NVL(r(l_curline).job_title, '<br>');
display(2) := NVL(r(l_curline).company_name, '<br>');
display(3) := NVL(Cc_Pkg_Nls.date2char(r(l_curline).apply_date, App.date_format), '<br>');
IF MOD(l_curline, 2) = 0 THEN
Cc_Pkg_Elements.tr_even;
ELSE
Cc_Pkg_Elements.tr_odd;
END IF;
htp.p('<td>');
htp.p('');
Web_Pkg_Elements.doc_val(display(1)||'');
htp.p('</td>');
htp.p('<td>');
Web_Pkg_Elements.doc_val(display(2));
htp.p('</td>');
htp.p(' <td>');
Web_Pkg_Elements.doc_val(display(3));
htp.p(' </td>');
htp.p('</tr>');
END LOOP;
htp.p('</TABLE>');
htp.p('<TABLE width="88%" BORDER="0" CELLPADDING="0" CELLSPACING="0"
align="center">');
htp.p('<tr valign=bottom>');
htp.p('<TD colspan=2 align=right>');
IF l_my_page_no > 1 THEN
htp.p('<P>'||'<IMG SRC="'||App.image||'prev.gif" ALT="'
||Txt_Proc_My_Joblist.prev
||'"' ||' HEIGHT=20 BORDER=0 ALIGN=bottom '
||'hspace=2>');
END IF;
IF l_my_page_no < CEIL (l_total_rec/l_lines) THEN
htp.p(' <a href="'||
web_pkg_elements.link$$(App.gateway||'8.my_application_list?'
||'pi_sort_col='||Web_Pkg_Elements.replace_in_url(pi_sort_col)
||'&pi_msg=&pi_page_no='||TO_CHAR(l_my_page_no + 1)
||">'||'<IMG SRC="'||App.image||'next.gif" ALT="'
||Txt_Proc_My_Joblist.NEXT
||'"' ||' HEIGHT=20 BORDER=0 ALIGN=bottom '
||'hspace=2></a>');
END IF;
htp.p('</TD>');
htp.p('</TR>');
htp.p(' </TABLE>');
htp.formHidden('pi_sort_col', pi_sort_col);
htp.formHidden('pi_page_no', pi_page_no);
htp.p('</FORM>');
END my_application_list;
END ; --cc_pkg_application_list -
How can I get the host name from Email address?
hi
When I using socket to develope an email-sending servlet,I don't know how to get the host name from emial address.can you help me,thanksStripping off the user name will give you the domain of from field in the message. This is not the same as the host. Take a look at:
http://www.stopspam.org/email/headers/headers.html
Theres a pretty good discussion about email headers and how to use the information. You probably want to check the information here against the RFC.
Sean -
Override default send from email id and attachment name in email delivery
How to override the default send from email ID and attachment name to send an outbound document using Email Transport protocol in Oracle Integration B2B ?. I've seen that "[email protected]" and subject of the email message were used as send from email ID and attachment name respectively
Ramesh,
I set the send from email ID as Generic Identifier for host and send to email ID as Generic Identifier for trading partner and used it in the agreement. How ever still the email message is generated with "[email protected]" as send from email ID.
However I noticed that the "FROM" field in the wire message is updated with the correct send from email ID which I used as the Generic Identifier for host.
Please advise. -
Duplicate enties getting attached in the email excel
HI,
When am trying to send the details in the excel duplicate entries are getting attached in the excel though the internal table has the correc value.The list is displaying the contents such as 1-255 are correct entries and 256-511 are the duplicate entries.
Instead of attaching in the excel if am displaying in the contents of email the details are getting displayed correctly.Please help to correct this duplicate entries in the excel.Code is as follows
TABLES: edidc,somlreci1.
TYPE-POOLS: slis,sscr.
TYPES: BEGIN OF gt_edidc,
docnum TYPE edidc-docnum,
status TYPE edidc-status,
credat TYPE edidc-credat,
idoctp TYPE edidc-idoctp,
mestyp TYPE edidc-mestyp,
rcvprn TYPE edidc-rcvprn,
END OF gt_edidc.
DATA:gi_edidc TYPE STANDARD TABLE OF gt_edidc.
DATA:gw_edidc TYPE gt_edidc.
SELECTION-SCREEN:BEGIN OF BLOCK b01 WITH FRAME TITLE text-001.
SELECT-OPTIONS:s_credat FOR sy-datum .
SELECT-OPTIONS: s_mailid FOR somlreci1-receiver OBLIGATORY
NO INTERVALS.
SELECTION-SCREEN:END OF BLOCK b01.
INITIALIZATION.
s_credat-low = ' '.
s_credat-high = sy-datum - 2.
APPEND s_credat.
start-of-selection.
SELECT docnum status idoctp mestyp rcvprn FROM edidc INTO CORRESPONDING
FIELDS OF TABLE gi_edidc
WHERE credat IN s_credat AND ( status EQ 64 OR status EQ 30 ).
IF no idoc selected for the given idoc date give the error message.
IF sy-subrc <> 0.
MESSAGE e000 WITH 'No idoc selected for the given input'.
ENDIF.
DATA: lv_objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
DATA: lv_objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
DATA: lv_objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: lv_objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: lv_reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE.
DATA: lv_doc_chng LIKE sodocchgi1.
DATA: lv_tab_lines LIKE sy-tabix.
data: lc_dsn_totals TYPE string.
DATA: gv_date_mmdd(10) TYPE c.
DATA: gv_message(50) TYPE c.
lv_doc_chng-obj_descr = 'IDoc Error Status'.
lv_objtxt = 'Please Find the Attached IDOC Error List'.
APPEND lv_objtxt.
lv_objtxt = 'Have a good day'.
APPEND lv_objtxt.
Mail Contents
DESCRIBE TABLE lv_objtxt LINES lv_tab_lines.
READ TABLE lv_objtxt INDEX lv_tab_lines.
*attaching the data excel sheet to be sent as the email.
CONCATENATE 'IDOCNUMBER' 'STATUS' 'BASIC TYPE' 'MESSAGE TYPE' 'PARTNER'
cl_abap_char_utilities=>newline INTO lv_objbin-line separated by
cl_abap_char_utilities=>horizontal_tab.
append lv_objbin.
LOOP AT gi_edidc INTO gw_edidc.
CONCATENATE gw_edidc-docnum gw_edidc-status gw_edidc-idoctp
gw_edidc-mestyp gw_edidc-rcvprn
cl_abap_char_utilities=>newline INTO lv_objbin-line
separated by cl_abap_char_utilities=>horizontal_tab.
APPEND lv_objbin.
ENDLOOP.
APPEND INITIAL LINE TO lv_objbin.
lv_doc_chng-doc_size = ( lv_tab_lines - 1 ) * 255 + STRLEN( lv_objtxt ).
CLEAR lv_objpack-transf_bin.
*OBJPACK-TRANSF_BIN = 'X'.
lv_objpack-head_start = 1.
lv_objpack-head_num = 0.
lv_objpack-body_start = 1.
lv_objpack-body_num = lv_tab_lines.
*OBJPACK-BODY_NUM = 1.
lv_objpack-doc_type = 'RAW'.
lv_objpack-obj_name = 'Mail'.
lv_objpack-obj_descr = 'First Mail'.
lv_objpack-doc_size = lv_tab_lines * 255.
APPEND lv_objpack.
Creation of the entry for the compressed document
DESCRIBE TABLE lv_objbin LINES lv_tab_lines.
CLEAR lc_dsn_totals.
IF sy-langu = 'E'.
CONCATENATE 'IDOC_TOTALS_' sy-datlo '_' sy-timlo INTO lc_dsn_totals.
endif.
*CLEAR OBJPACK-TRANSF_BIN.
lv_objpack-transf_bin = 'X'.
lv_objpack-head_start = 1.
lv_objpack-head_num = 0.
lv_objpack-body_start = 1.
*OBJPACK-BODY_NUM = TAB_LINES.
lv_objpack-body_num = lv_tab_lines.
lv_objpack-doc_type = 'CSV'.
lv_objpack-obj_name = 'ATTACHMENT'.
lv_objpack-obj_descr = lc_dsn_totals.
lv_objpack-doc_size = lv_tab_lines * 255.
APPEND lv_objpack.
*Create the list of recipients
LOOP AT s_mailid.
lv_reclist-receiver = s_mailid-low.
lv_reclist-rec_type = 'U'.
APPEND lv_reclist .
ENDLOOP.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = lv_doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = lv_objpack
object_header = lv_objhead
contents_bin = lv_objbin
contents_txt = lv_objtxt
receivers = lv_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
IF sy-subrc = 0.
MESSAGE s000 WITH 'Email succesfully delivered'.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ELSE.
MESSAGE s000 WITH 'Error while sending email'.
ENDIF.Your code is tough to understand in the way you posted .....
make sure you are clearing the data in some internal tables.... or make sure you are using the correct table for email body and to excel
if at all if you are using header line clear: itab[] will clear the whole table.. -
Get Attachment name with rules/filters
Hello!
I want to create a rule through the GroupWise API that trashes incoming
mails with certain attachment names.
In the CreateRule-Screen there are tons of "filterable" fields avialable,
both user defined and system internal, one of them is attachments.
However, with the FilterSetText-Token it seems I can only access a few
predefined fields, and the user-defined fields through the
"FieldName"-parameter.
How do I get the other internal fields, like "attachments"?
MartinYour best bet maybe to create a search folder with the query you want
and then read the resulting query out of the folder.
You will find more details on Filter Expressions in the Object API, the
Token docs seem to be more basic and some what older.
Roger Thomas, Dev SysOp 22
<[email protected]> wrote in message news:%Kmid.1859$[email protected]..
> Hello!
>
> I want to create a rule through the GroupWise API that trashes incoming
> mails with certain attachment names.
>
> In the CreateRule-Screen there are tons of "filterable" fields avialable,
> both user defined and system internal, one of them is attachments.
>
> However, with the FilterSetText-Token it seems I can only access a few
> predefined fields, and the user-defined fields through the
> "FieldName"-parameter.
>
> How do I get the other internal fields, like "attachments"?
>
> Martin -
Use attachment name as email subject
I found a great workflow posted up here that will let you compress and email a selected file/folder in the finder. I wanted to see if someone knows of a way to add a function or a command in the workflow that tells it to use the attachment name as the Subject in the email. Thanks!
I have a Get Names of Finder Items action on my iDisk that will get file names (you can also use a Run AppleScript action to accomplish the same thing). An Example workflow would be:
1) *Get Selected Finder Items*
2) *Create Archive* -- putting this action here will archive multiple selections
3) *Set Value of Variable* { Variable: Attachment } -- this will be the attached archive
4) *Get Names of Finder Items* { Name: Basename.Extension }
5) *Set Value of Variable* { Variable: Name } -- this will be the Subject name
6) *Get Value of Variable* { Name: Attachment } (Ignore Input) -- get the attachment
7) *Sort Finder Items* -- this just makes sure the next action sees files and not text
8) *New Mail Message* (drag Name variable to the Subject line) -
is there a way to get a user's name from their ID? This arises from sending an email from a workflow for activities. You can send the email to the owner, but within the email, you only have access to the OwnerID, not name.
Hi Vijay, thanks for your question.
you can right custom console application to read External content type list data and update it from user information list., please check if this can help you.
SPWeb web = new SPSite("http://siteUrl").openWeb();
SPUser user = web.EnsureUser(@"domain\username");
SPListItem item = web.SiteuserInfoList.Items.GetItemByID(user.ID);
foreach (SPField field in item.Fields)
//you can get all user properties
//below code will give some example of some of properties
System.Console.WriteLine("title: {0} -- {1}" field.Title, field.internalName);
The User Information List can be accessed (Only if you’re admin) via the browser by navigating to /_catalogs/users/simple.aspx from your site. (Ex:http://siteurl/_catalogs/users/simple.aspx)
if user display name is not updated in user information list then you can run below script.
function Sync-SPUser([string]$userName) {
Get-SPSite -Limit All | foreach {
$web = $_.RootWeb
if ($_.WebApplication.UseClaimsAuthentication) {
$claim = New-SPClaimsPrincipal $userName -IdentityType WindowsSamAccountName
$user = $web | Get-SPUser -Identity $claim -ErrorAction SilentlyContinue
} else {
$user = $web | Get-SPUser -Identity $userName -ErrorAction SilentlyContinue
if ($user -ne $null) {
$web | Set-SPUser -Identity $user -SyncFromAD
$web.Dispose()
$_.Dispose()
Thanks, ShankarSingh -
How to get key name from parameter list
hi..
i want string from parameter list.. i hv already created parameter list like
ADD_PARAMETER (param_list_id, 'EMPID', TEXT_PARAMETER,'123');
ADD_PARAMETER (param_list_id, 'EMPNM', TEXT_PARAMETER, 'ABC');
ADD_PARAMETER (param_list_id, 'EMPADD', TEXT_PARAMETER, 'XXX');
i got value like '123' ,'ABC', 'XXX' using
eg. get_parameter_attr(param_list_id,'EMPID',aprmlist,avalue)
but i want key name like 'EMPID' , 'EMPNM', 'EMPADD' from param_list_id
is it possible to get this key name from parameter list ???
Thanks...I cannot think of a way to do that. The code that reads the list is supposed to know the key names. That is sort of the point with parameter lists. If you need to have parameter lists that can be interepreted by some code that doesn't know about a specific list but knows how to interpret it by inspecting the key names, perhaps you can specify a separate parameter list with the key names as values and call the keys of that list something generic?
-
Problem: Original Attachment Name from SOAP Sender changes to attachment-1
Hi everybody,
we have a scenario where a SOAP sender receives a xml message describing several documents. Each document has a mime type and a file name, size, md5 checksums etc as attributes.
The documents are send as attachments with the same Web service in SWA(SOAP with attachment style).
The web service calls an ABAP proxy provider class in a R/3 backend.
The ABAP proxy class will save the attached documents for further processing and must use the original document names.
At the soap communication channel monitoring(Java Stack) we still see the original attachment names in the message content tab.
At the Integration Server(sxmb_moni) the attachment name changes to attachment-1, attachment-2 and so on.
Using the method
IF_AI_ATTACHMENT ->GET_DOCUMENT_NAME
in the provider ABAP proxy class returns the name attachment-1.
We can see that there is a mapping of the new attachment-1 name to the old, original name in the manifest section of this message on the Integration server.
Is there a way to access the manifest section at a provider ABAP proxy class? Or otherwise a PI configuration setting to preserve the original attachment names.
Thanks a lot,
Heiko
=> PI 7.1 SP9Hi Stefan,
(I was hoping you would find that thread ...)
I see a good reason why the attachment names are changed as the PI message protocol sends the main document as an attachment as well. So no problem with that because the information of the mapping old to new names still exists in the manifest part and is visible at the sxmb_moni.
We see a manifest part like this (Sorry cant post the whole xml doc as the formatting for longer messages isn't working in the forum)
<SAP:Payload xlink:href="cid:4cc43edd-839f-423f-b7c6-7e44294d663a_sig.p7m">
<SAP:Name>attachment-1</SAP:Name>
<SAP:Description>attachment</SAP:Description>
<SAP:Type>ApplicationAttachment</SAP:Type>
</SAP:Payload>
The (red) cid entry is the original file name. This manifest is from the sxmb_moni in the r/3 backend. So all the information is there.. The question is how to retrieve this information .. Any idea?
Best Regards,
Heiko Bergmann
Maybe you are looking for
-
hi I am having zero stock on 13.11.2008. I did MIGO(101) date is 13.11.2008. My system allowing me to issue material on 5.11.2008. So that my stock came in negative. i am not getting any error if i am posting in back date in same period when there w
-
Hallo Guys, I've just setup a DB connection with our BW server. I managed to view the tables and created an Infosource. Still, in the datasource I can't see any Info-objects from the source system. Any tips on this issue? Many thanks, Kurt
-
How can I open a report created in Access by LabView 7.1? I open, edit, delete a register in a field created in Access without problems a database by LB7.1, but I don't know how open a report to print. I'd like to do since To create a report using La
-
Manged Property based on calculated column
Hi, I set a refiner based on a managed property. the managed property is mapped to the crawled property which is based on a document library calculated column with a formula: ="In Process" . In refinement panel i see string;#In Process instead of jus
-
How Can I Make Database To Video And Emage? My Project Is Takeing pictures And Video of the body scan To The patients And Make Record To Evry patient In My Database Plzzzz Help Me To Do That 1- How Can I Take This pictures And Video From The body sca