MIME type of attachments in CRM

Hi there,
could you please assist with the following question.
There is an attachment in CRM system which is stored with MIME text/x-doctype - can the MIME type be changed afterwards somehow? Maybe using some report?
thanks for your help!
cheers,
Johannes

I do not know of a standard report, but something bespoke could be written.
Class CL_CRM_DOCUMENTS has a method change_properties.  This should allow you to change the value for the MIME_TYPE property.  A bespoke report could use this to access and change the mime type of documents.

Similar Messages

  • How to read the content of .msg file type with attachments in SAP crm?

    Hi All,
    Need to develop a RFC FM which will take any BP number as input
    Read the attachments in the BP and identify the attachment which is an email( .msg).
    Identify by the mime type and file extension
    Scan through the email to get the attachments of that email read the content of the
    attachment as a binary file and return that binary file with file name, size
    etc.
    I need to read the data (in binary format) attachment of an attachment of .msg file type .
    I have done till step 2 .
    Please help me on step 3.
    Thanks&Regards,
    Pratap Naik

    Can any one help me on this ?
    Thanks in advance.
    Regards,
    Pratap Naik

  • Inbound Email Attachments with MIME type of application/octet-stream

    I'm hoping someone can help me here. I'm trying to start a BPEL process via email. The email can consist of no attachments or multiple attachments. All the attachments should be text, e.g. XML, CSV, etc.
    Where I have got to is receiving the email and writing the attachments to variables. All is fine until I get an attachment that has a MIME type of application/octet-stream. I would only expect to see this for files that are not text based.
    Does anyon know how I can inturpret this type so I can extract the text? In this example both files are text based although only the first file is displayed.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <mailMessage xmlns="http://services.oracle.com/bpel/mail">
    - <from>
    <email>[email protected]</email>
    <displayName>James</displayName>
    </from>
    - <to>
    - <address>
    <email>j@james</email>
    <displayName>James</displayName>
    </address>
    </to>
    - <replyTo>
    <email>[email protected]</email>
    <displayName>James</displayName>
    </replyTo>
    <subject>RE: test</subject>
    <sentDate>2007-05-02T11:19:37.000+12:00</sentDate>
    <contentType>multipart/mixed; boundary="----_=_NextPart_001_01C78C47.6040C3F0"</contentType>
    - <content>
    - <multiPart>
    - <bodyPart>
    <contentType>text/plain; charset="iso-8859-1"</contentType>
    <content>________________________________ From: James [mailto:[email protected]] Sent: Tue 1/05/2007 3:05 PM To: James Subject: test</content>
    </bodyPart>
    - <bodyPart>
    <contentType>text/plain; name="create_MODS_schema.sql"</contentType>
    <content>CREATE USER TOLLBPEL IDENTIFIED BY VALUES 'TOLLBPEL' DEFAULT TABLESPACE APPS_TS_MODS_DATA TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; GRANT ANALYZE ANY TO MODS; GRANT CREATE TYPE TO MODS; GRANT CREATE TABLE TO MODS; GRANT ALTER SESSION TO MODS; GRANT QUERY REWRITE TO MODS; GRANT CREATE CLUSTER TO MODS; GRANT CREATE SESSION TO MODS; GRANT CREATE TRIGGER TO MODS; GRANT CREATE SEQUENCE TO MODS; GRANT CREATE SNAPSHOT TO MODS; GRANT DROP ANY OUTLINE TO MODS; GRANT ALTER ANY OUTLINE TO MODS; GRANT CREATE ANY OUTLINE TO MODS; GRANT CREATE DATABASE LINK TO MODS; GRANT CREATE PROCEDURE to MODS; ALTER USER MODS QUOTA UNLIMITED ON APPS_TS_MODS_DATA; ALTER USER MODS QUOTA UNLIMITED ON APPS_TS_MODS_IDX;</content>
    <bodyPartName>create_MODS_schema.sql</bodyPartName>
    </bodyPart>
    - <bodyPart>
    <contentType>application/octet-stream; name="citup.log"</contentType>
    <content>W0luc3RhbGxTaGllbGQgU2lsZW50XQ0KVmVyc2lvbj12NS4wMC4wMDANCkZpbGU9TG9nIEZpbGUNCltSZXNwb25zZVJlc3VsdF0NClJlc3VsdENvZGU9LTEyDQo=</content>
    </bodyPart>
    </multiPart>
    </content>
    </mailMessage>
    Any help will be appreciated.
    cheers
    James

    I'm hoping someone can help me here. I'm trying to start a BPEL process via email. The email can consist of no attachments or multiple attachments. All the attachments should be text, e.g. XML, CSV, etc.
    Where I have got to is receiving the email and writing the attachments to variables. All is fine until I get an attachment that has a MIME type of application/octet-stream. I would only expect to see this for files that are not text based.
    Does anyon know how I can inturpret this type so I can extract the text? In this example both files are text based although only the first file is displayed.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <mailMessage xmlns="http://services.oracle.com/bpel/mail">
    - <from>
    <email>[email protected]</email>
    <displayName>James</displayName>
    </from>
    - <to>
    - <address>
    <email>j@james</email>
    <displayName>James</displayName>
    </address>
    </to>
    - <replyTo>
    <email>[email protected]</email>
    <displayName>James</displayName>
    </replyTo>
    <subject>RE: test</subject>
    <sentDate>2007-05-02T11:19:37.000+12:00</sentDate>
    <contentType>multipart/mixed; boundary="----_=_NextPart_001_01C78C47.6040C3F0"</contentType>
    - <content>
    - <multiPart>
    - <bodyPart>
    <contentType>text/plain; charset="iso-8859-1"</contentType>
    <content>________________________________ From: James [mailto:[email protected]] Sent: Tue 1/05/2007 3:05 PM To: James Subject: test</content>
    </bodyPart>
    - <bodyPart>
    <contentType>text/plain; name="create_MODS_schema.sql"</contentType>
    <content>CREATE USER TOLLBPEL IDENTIFIED BY VALUES 'TOLLBPEL' DEFAULT TABLESPACE APPS_TS_MODS_DATA TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; GRANT ANALYZE ANY TO MODS; GRANT CREATE TYPE TO MODS; GRANT CREATE TABLE TO MODS; GRANT ALTER SESSION TO MODS; GRANT QUERY REWRITE TO MODS; GRANT CREATE CLUSTER TO MODS; GRANT CREATE SESSION TO MODS; GRANT CREATE TRIGGER TO MODS; GRANT CREATE SEQUENCE TO MODS; GRANT CREATE SNAPSHOT TO MODS; GRANT DROP ANY OUTLINE TO MODS; GRANT ALTER ANY OUTLINE TO MODS; GRANT CREATE ANY OUTLINE TO MODS; GRANT CREATE DATABASE LINK TO MODS; GRANT CREATE PROCEDURE to MODS; ALTER USER MODS QUOTA UNLIMITED ON APPS_TS_MODS_DATA; ALTER USER MODS QUOTA UNLIMITED ON APPS_TS_MODS_IDX;</content>
    <bodyPartName>create_MODS_schema.sql</bodyPartName>
    </bodyPart>
    - <bodyPart>
    <contentType>application/octet-stream; name="citup.log"</contentType>
    <content>W0luc3RhbGxTaGllbGQgU2lsZW50XQ0KVmVyc2lvbj12NS4wMC4wMDANCkZpbGU9TG9nIEZpbGUNCltSZXNwb25zZVJlc3VsdF0NClJlc3VsdENvZGU9LTEyDQo=</content>
    </bodyPart>
    </multiPart>
    </content>
    </mailMessage>
    Any help will be appreciated.
    cheers
    James

  • How to determine mime-type of a file using OSB

    I was working on a requirement where in it requires to use FILE/ FTP adapters using OSB or BPEL as solution. The idea is to pick up files from one location to another location for certain legacy platforms. The real issue is, someone can put a JPEG file in the upload/download location(s), merely by changing the extensions. When this happens the systems will not process since the mime-type is incorrect.
    I know of an open-source API (Apache-Tikka) to determine the mime-types, but then if we use open-source why would customer buy from us.
    The intention is to pick-up the file and simply pass-it (and not parse) on to next system using File or FTP adapter, but in the process, cross check the MIME-TYPE before doing so.
    Any solution using Oracle Service Bus or BPEL would help

    HI Birender,
    Kindly go through the metalink doc for processsing jpeg/xml/pdf etc any atachement using bpel :Understanding XPATH functions for processing MIME attachments with BPEL PM in SOA Suite 11gR1 [ID 1272093.1]
    Regrds,
    olety

  • How to specify MIME type handlers in Safari?

    In the old days, it was possible to specify the MIME type handler in web browsers like Netscape, etc. I can't seem to find this functionality in Safari. Is it possible to do this?
    Specific intended use case: I use a website that includes document attachments that are of MIME type message/rfc822. They're just the text source of email messages (with a .eml extension). When I click on a link to one of these attachments, Safari wants to download it to a file, warns me that a ".eml" file might be dangerous (that's another thing I'd like to fix), and so forth. It's just a text file. I'd like to make Safari just display the text, as if it were of MIME type text/plain.
    Any hints or is not not possible?
    Thanks,
    Scott

    Maybe this is something that RCDefaultApp could do?

  • How to get the mime type of the workflow attachment attached to workitem id

    Hi Experts,
    I can attach different types of attachment to the workitem id, lets suppost the attachment type attached is pdf, for this attachment I have an requirement to send the mime type as well. In this case the mime type is 'application/pdf' for pdf files.(for text file it is 'text/plain' and for zip file it is 'application/zip' and so on)
    Do I have any place in ABAP world where I can get the mime type for different types of attachments.
    I dont want to hard code the mime types, and I have checked the transaction 'SMW0', but not sure if this is the correct place to get the mime type.
    Do you see any other way or tables which stores all these mime types.
    Any help/suggestion would be appreciated.
    Thanks and Regards,
    Neerup.

    Hello,
    Perhaps this can help:
    http://help.sap.com/saphelp_nw04/helpdata/en/ad/ebe5cc1d75aa43a2871717d76f475d/content.htm
    If you want to know the table name, turn on tracing (ST05) when accessing the MIME types.
    regards
    Rick Bakker
    Hanabi Technology

  • Attachments from CRM in DMS content server

    Hello,
    I have configured a DMS content server to save the attachments from CRM. but can not get the store in the content, as I can do? Attachments I keep it via web from the interlocutor.
    I touched the table SDOKPHCL and the value  BDS_POC1 and I have put the value of content, but still keep it to or at the base's own CRM.
    I need to configure?
    Thank you.

    Hello,
    Table SOFFCONT1 attachments are stored that are recorded in the database logic of sap. That is if the id of the document not find it in this chart means that you are storing away in a content server.
    I've gotten crm annexes the content stored on a server.
    The first thing I have done is create a content server-class CRM. OAC0 in, then I created the category AOCRS taking the content. CSADMIN and I found that the content is running.
    In transaction SKPR08 BDS_POC1 class I have assigned to the Z-server content that I created. and in all kinds of CRM type I have assigned the new Z category I created.
    After the transaction SBDSV2 I created a new record with BUS1006 in this case because it was a contact in CRM and I have given the document class Z BDS_ATTACH the category of content.
    The BUS is obtained by a trace of the transaction and SWELS swel (with some modification from the transaction in which I attach the document).
    In SBDSV1 I've got to bus1006 BDS_LOC1 class.
    And with that I have solved the problem.

  • Convergence Firefox Mime types

    I'm trying to download an email attachment from Convergence using FF 3.0.5 on Solaris 10 U4.
    I'm getting the following error:
    /tmp/<File Name> could not be opened, because the associated helper application does not exist. Change the association in your preferences.
    I have to save the attachment and open it using nautilus.
    In my testing this applies to doc and odt attachments. I have also noticed the same behavior using FF 3.1b1 and OpenSolaris build 101 and the release of FF in Solaris 10U4.
    I have another webmail application (http://www.horde.org) connecting to the same messaging server. I'm able to open the same email attachment without having to save it before hand. Horde lists the mime type as application/msword although I don't know how to verify that.
    Is there a way of verifying the mime type that convergence is presenting?
    Edited by: karl.rossing on Jan 14, 2009 1:19 PM

    karl.rossing wrote:
    I have another webmail application (http://www.horde.org) connecting to the same messaging server. I'm able to open the same email attachment without having to save it before hand. Horde lists the mime type as application/msword although I don't know how to verify that.
    Horde may be getting the MIME type from the MIME part header. For example when I upload an OpenOffice document using Convergence -04 and Firefox 2.0 on Windows XP I get the following attachment MIME header in the email body:
    Content-Type: application/vnd.oasis.opendocument.text; charset=UTF-8
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename=test.odt
    Is there a way of verifying the mime type that convergence is presenting?Looking at the HTTP headers of the response to the attachment GET from the client (using wireshark), I see that Convergence is specifying the Content-Type: as "application/octet-stream" and in the body of the request response I see the MIME Type application/vnd.oasis.opendocument.text information.
    Regards,
    Shane.

  • Reading mime types other than text

    Is there a way to parse out text from mime types (other than text). I am using the following code for getting content of emails but it gives a "class not found exception" when the email content is something other than pure ascii text or if the email has attachments.
    Message messages[]=folder.getMessages();
    int nummessages=folder.getMessageCount();
    System.out.println((String)((MimeMessage)messages[nummessages-1]).getContent()).
    Also can anyone provide any direction on how to seperate out the mail body from attachments.
    thanks for any help
    ronjon

    Hi!
    Maybe the following is helping...
    First call: this.processEvaluateContenttype(((MimeMessage)messages[nummessages-1]).getContent());
         protected void processEvaluateContenttype(Object aObject){
              try{
                 if(aObject instanceof Multipart){
                     Multipart aMultiContent = (Multipart) aObject;
    //                    Traverse every part of the multipart-content...                         
                        for(int contentIndex=0; contentIndex < aMultiContent.getCount(); contentIndex++){
                             this.processEvaluateContenttype(aMultiContent.getBodyPart(contentIndex));                       
                 }else if(aObject instanceof BodyPart){
                     BodyPart aBodyContent = (BodyPart) aObject;                                 
                        StringTokenizer aTypeTokenizer = new StringTokenizer(aBodyContent.getContentType(), "/");
                        String abstractType = aTypeTokenizer.nextToken();                     
                        if(abstractType.equals("MESSAGE") || abstractType.equals("message")){
                             Message inlineMessage = (Message)aBodyContent.getContent();        
                             this.processEvaluateContenttype(inlineMessage.getContent());
    //                    Specific tryouts....
                        }else if(abstractType.equals("APPLICATION") || abstractType.equals("application")){
    //                         Get name of attachment...
                             String fileName = aBodyContent.getFileName();     
    //                         Check name of attachment...
                             if((null != fileName)
    //                                      do somthing
             }catch(Exception ex){
                  super.errorManager.handleError("MailBot | Task_ContractState", ex);
                   super.isResponsible.isResponsible = false;
         }     This method is in daily use and works fine... The "abstractType" you are looking for is bw "TEXT" and "text":

  • 50L4300 TV MIME Type Not Supported

    My Toshiba 50L4300 TV web browser is having problems with some web pages and shows such error MIME Type Not Supported. Can not open MIME type resource. It has Software 7.2.67.32.01.1 Jul 02 2014. MBOOT Version: 00467596.
    Any idea why do I have this error? please find enclosed pictures.
    Attachments:
    1.JPG ‏22 KB
    2.JPG ‏29 KB

    The TV doesn't have support for Flash content. Flash is a third-party plugin available for many web browsers. I'm sorry.
    - Peter

  • How can I use one Add-on prior to another for specific MIME-types?

    I'm using Shockwave Flash plugin to watch some videos on YouTube, StreamCloud, etc. It also handles .mkv and .mp4 files/streams. After installing VLC Web plugin to handle MIME-types like mp3/4, mkv additionally and prior to the Flash plugin, Firefox keeps using Flash to handle those types insted. I cannot find options to set the desired priorities. Only disabling the Flash plugin solves my problem, but also keeps me from watching Flash contents, which Is not acceptable.
    Did I miss something or is this Firefox's fault?

    If you type or paste '''about:plugins''' in the address bar and press Enter, you can see which plugins are associated which various content types.
    I do not know how to prioritize one over the other for the same content type if the plugin settings (plugins often have an interface outside of Firefox to adjust their settings) do not allow that.
    As for MP4, I don't think Flash normally would be selected. I suspect the website is specifying a Flash media player and streaming the MP4 through that. If you want to hide the Flash plugin from a particular website, you can use the Permissions tab of the Page Info dialog.
    Click the padlock or globe icon in the address bar, then More Information, then Permissions. The top section of the Permissions panel should be "Activate Plugins". Here you can select Block for Flash for the current site. After reloading the page, does the media play using a different plugin?

  • Unable to launch application from my machine:Bad MIME Type

    Hi,
    The following error message was printed when I tried to access the SwingSet2 demo from the Java Web Start site.
    An error occurred while launching/running the application.
    Title: SwingSet2
    Vendor: Sun Microsystems, Inc.
    Category: Download Error
    Bad MIME type returned from server when accessing resource: http://java.sun.com/products/javawebstart/apps/SwingSet2.jnlp - text/html
    Can you please suggest what is to be done to rectufy this problem?
    Regards,
    Satish

    Bad MIME type returned from server when accessing
    resource:
    http://java.sun.com/products/javawebstart/apps/SwingSet
    .jnlp - text/htmlit should return application/x-java-jnlp-file.
    My guess is that you use proxy which messes up headers.
    Otherwise try to reinstall Web Start, then enable the console and log output in Web Start's advanced preferences to get more clues what's going on.
    Regards,
    Marc

  • How to change default application associated with some mime types?

    When we install some new program, for example GIMP, I assume the newly installed program is added to some mime type database, and the /usr/share/applications/mimeinfo.cache file is automatically generated.
    Using my example, GIMP will be the default application for all its registered mime types, even application/pdf. I surely don't want this to happen, and I surely don't want to create all kinds of files that GIMP registered and right click on them and choose Properties and then change it in the Open with... tab. I want to systematically de-prioritize GIMP so that it will not override my previously assigned default applications.
    I wrote a script to modify the mimeinfo.cache file, and it seems to work great. However, after a reboot or upgrade or something I didn't notice, the default application of application/pdf is reconfigured to GIMP. I think the cache suffix of the file indicates that it is just a cache and may be changed by system unnoticed. So I am looking for a new way to change the default applications.
    As far as I know or guess from the phenomena, there should be some system utility that generates the mimeinfo.cache file, it seems to parse all the *.desktop files under /usr/share/applications and register them to certain mime types accordingly. The sequence of the *.desktop files get parsed seems to be related to the time the application is installed, and the newly installed applications seems to be parsed later and inserted in the front of the application list or be parsed earlier and appended to the application list. Is there some place I can change the sequence of the parsing? Or is there some place I can change the behavior of the system utility?
    I know that I can populate my ~/.local/share/applications/mimeapps.list to override the system wide defaults, however, I want a more elegant way to this.
    Any opinion on this is welcomed.
    Last edited by AugustePop (2010-05-14 05:47:15)

    Ah, right. Don't know what DE you are on, but in Gnome:  right-click a (e.g. pdf) file -> Preferences -> Open with.
    All Applications listed there will be available from the right click menu, the marked one will be used on double-click.
    errgrh...
    I surely don't want to create all kinds of files that GIMP registered and right click on them and choose Properties and then change it in the Open with... tab. I want to systematically de-prioritize GIMP so that it will not override my previously assigned default applications.
    I guess what I am trying to propose is this: "de-prioritize" GIMP in its .dekstop file for the types you dont want it to be associated with, and manually add it back in through "Open With" for the file types you want it to be an option. Not sure if this is solving anything for you though
    Last edited by hokasch (2010-05-14 10:28:57)

  • File/Open Dialog Box / Setting MIME type

    In my application, I am calling a web service that returns text that I need to download into an EDI application. I am simply looking to have an open/file dialog box open when the text is returned. I was using the following code in a PL/SQL process:
    begin
    -- Set the MIME type
    owa_util.mime_header( 'application/octet', FALSE );
    -- Set the name of the file
    htp.p('Content-Disposition: attachment; filename="EDIOuput.edi"');
    -- Close the HTTP Header
    owa_util.http_header_close;
    end;
    The problem is the HTML code that comes along with the text that is returned. Is there a way to simple call the procedure on a page that only containes the raw data?
    Thank you.

    HTML doesn't provide you the possibility to select multiple files or select folders at a single browse. Thus JSF can't do any much for you. Best what you can do is to write a signed applet or web start application which does the task. The Mojarra Scales component library has a ready-to-use component which embeds an applet which does that task. Check [https://scales.dev.java.net/multiFileUpload.html].

  • Print HTML using JPS API.. How to configure printer MIME-TYPE as text/html

    Hi All,
    I have to print the HTML pages.. for this i have used JPS API , but i found that my printer doesnt supoort Mime-type(Flavour) text/html.
    Can someone help me in this ...
    i) Can i configure my printer for this Mime-type , if yes then HOW?
    ii) Is there any work around ?
    Thank you all in advance :)

    I reposted this question in the Database forum. Admin can feel free to delete this thread.
    The answer is to add this at the top: htp.addDefaultHTMLHdr(false);
    Thanks,
    T.
    Edited by: 855677 on May 3, 2011 9:35 AM

Maybe you are looking for

  • PIXMA MX922-Envelope Printing

    I am trying to print a commercial size 10 envelope from Word 2013 document. The envelope contains a table created in Word that extends the full height and width of the envelope with .5 margins on all sides. This printed fine on my HP LaserJet 5 but w

  • Running Fop from JAVA program

    Hi all, this may be a rookie question....hope you can help. I can run Fop (0.18.0) perfectly from the command line. I created a style sheet (xsl file), which converts the xml file. On the command line, I input the xsl file, the xml file, and state th

  • How do I edit according to time on iPad?

    I need to edit according to exact time. For example I need to create a clip of 0:33 to 0:49 exactly. I can't see a time indicator on the app, other than the one inducting to length of time of the entire clip. Any advice?

  • WEB SERVCIE TO INSERT ROW ina Table in DATABASE

    Hi ALL I want to create a web service to insert row in a table in database. As I am new to Web Service. Please help me to do it. Thanks in advance !

  • Saving Multiple files in RTF

    Does anyone know how to save multiple files in a book as RTF, other than saving each one individually? I have tried saving as a pdf and converting it but the formatting is never correct. I am using FM 9 on Windows 7. Thanks in anticipation. Stu