Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
Topic Title: TB240 - ProcessEmailSubmitForms problem
Topic Summary: TB240 - ProcessEmailSubmitForms problem
Created On: 24-Jun-2005 14:58
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by JOERG ALDINGER, on Friday, September 16, 2005 2:23 PM

Answer:
Hello,

I had the same problem and I solved it by a query for
the latest CRs that are in the 'entered' status.
This query is submitted immetiately after the ProcessEmail API call
and uses a relative time query 'entered in the last minute'.
It may be refined by using a smaller time interval ('last X seconds')
and filtering the enterer ($aUser)


my $tmpstr = $csapi->ProcessEmailSubmitForms($aUser);

my $columns = "problem_number|crstatus|problem_synopsis";

my $result = $csapi->QueryData($aUser, "Basic Summary", "(crstatus='entered') and (cvtype='problem') and (entry_date>time('-0:0:1:0'))",
undef, undef, undef, $columns);
# extract query data from $result ...

Best regards,

Joerg Aldinger
 24-Jun-2005 14:58
User is offline View Users Profile Print this message


ludovic michoux

Posts: 8
Joined: 8-Feb-2005

When I do as in TB240, I can process my emails submission using the csapi.
I know from the logs when something is going wrong.
because I'm using an eval block with 

        if ($@)
        {
                print STDERR $@;
        }

Now, I want to trace in a log the CR NUMBERS that has been created in my database when everything was summitted correctly. Something like 'submitted problem123'

But the only message I have is "PT_DAEMON: Done".. This is not helpfull...

Anybody got this done already ?

Thanks;

Ludo



Edited: 27-Jun-2005 at 10:46 by ludovic michoux
Report this to a Moderator Report this to a Moderator
 12-Sep-2005 11:17
User is offline View Users Profile Print this message


JOERG ALDINGER

Posts: 2
Joined: 21-Jan-2004

Answer Answer
Hello,

I had the same problem and I solved it by a query for
the latest CRs that are in the 'entered' status.
This query is submitted immetiately after the ProcessEmail API call
and uses a relative time query 'entered in the last minute'.
It may be refined by using a smaller time interval ('last X seconds')
and filtering the enterer ($aUser)


my $tmpstr = $csapi->ProcessEmailSubmitForms($aUser);

my $columns = "problem_number|crstatus|problem_synopsis";

my $result = $csapi->QueryData($aUser, "Basic Summary", "(crstatus='entered') and (cvtype='problem') and (entry_date>time('-0:0:1:0'))",
undef, undef, undef, $columns);
# extract query data from $result ...

Best regards,

Joerg Aldinger
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.